Living .NET...

Musings on .NET, and the like - Manoj G [MVP, Connected Systems Developer]

Browse by Tags

All Tags » .NET 2.0 (RSS)
Sorry, but there are no more tags available to filter with.
Implementing Timeout & Retry
I have come across several situations where I need some sort of Timeout functionality for a particular operation. At the same time, I also needed a provision for retrying the operation a few times before calling quits. I thought about a solution using...
Posted: Wed, Nov 1 2006 17:58 by Manoj G | with no comments
Filed under:
Predicates in Action
Get to know about one of the cool new things in .NET 2.0 - Predicates!...
Posted: Tue, Aug 29 2006 13:12 by Manoj G | with 3 comment(s)
Filed under:
Tip: Debugging Windows Services
The other day, I was watching the PDC presentations on WCF and one of them was on hosting WCF services by Steve Maine. Part of the presentation was about hosting Indigo on Windows services (or NT Services). One of the demos had a small and very interesting...
Posted: Tue, Apr 4 2006 0:25 by Manoj G | with no comments
Filed under:
Useful additions in .NET 2.0 - Part 3: EventHandler<TEventArgs>
If your .NET class needs to generate events, at a minimum, you typically do the following: 1) Create a new class which derived from EventArgs – the instance of this class would be used to communicate certain information to the event handler about the...
Posted: Mon, Jan 2 2006 0:28 by Manoj G | with 1 comment(s)
Filed under:
Useful additions to .NET 2.0 - Part 2: Nullable Types
Nullable types, put in simple terms can be thought of as a way of having nullable value types. Quite obviously, one of the largest applicability of this concept is that of database programming, where you can associate a null value with any datatype. Not...
Posted: Sun, Nov 20 2005 12:14 by Manoj G | with no comments
Filed under:
BackgroundWorker and SynchronizationContext
I have mentioned umpteen number of times earlier - .NET 2.0 comes with a wealth of new classes that have been added to the BCL. Today’s turn is of BackgroundWorker . If you look at the available documentation (circa Beta 2), this is what you will find...
Posted: Thu, Nov 3 2005 10:40 by Manoj G | with 5 comment(s)
Filed under:
Small, but useful additions in .NET 2.0 – Part 1
The BCL in .NET 2.0 has a plethora of small additions, which are not that visible, but are very useful. I’ll try to cover many of these in my subsequent posts. String.IsNullOrEmpty is one such method. As the name would indicate, this method returns true...
Posted: Thu, Oct 27 2005 10:31 by Manoj G | with no comments
Filed under:
SetMaxThreads: A good addition to the ThreadPool class in 2.0
The ThreadPool class is very handy to developers. You could queue a method to run on a separate thread and forget about it, without worrying about managing the thread object or about a possible thread explosion scenario. That’s because the .NET...
Posted: Thu, Oct 6 2005 20:18 by Manoj G | with 3 comment(s)
Filed under:
DataSets - A journey from a boon, to a bane and back
One of the biggest cribs about the DataSet in .NET 1.0 and 1.1 was its serialization performance. The DataSet, albeit providing a rich object model to work with data in a disconnected way, was a bane when it came to passing it across tiers of the application...
Posted: Tue, Oct 4 2005 15:31 by Manoj G | with 1 comment(s)
Filed under:
Stopwatch your code!
Timing managed code is one thing I do quite often. I guess measurement of the method level execution times is a common task for any application developer for that matter. I have used various methods for measurement; the worst of them all is using DateTime...
Posted: Tue, Sep 27 2005 19:46 by Manoj G | with no comments
Filed under:
InternalsVisibleToAttribute - Friend Assemblies
You come across several situations where you need to develop a set of class libraries, say a framework of sorts, and there are several classes within certain assemblies which need to be marked as internal. You go ahead and mark them as internal, and then...
Posted: Mon, Sep 26 2005 22:24 by Manoj G | with 1 comment(s)
Filed under:
HttpListener in .NET 2.0 - Creating new possibilities
Microsoft's vision of the .NET Framework was a that of a platform for developing Web Services; the primary motivation behind this inception being ease and productivity for developers, and performance and scalability for the deployed applications. Developers...
Posted: Sun, Jul 10 2005 2:28 by Manoj G | with 1 comment(s)
Filed under:
DBProviderFactory - Old wine in a new bottle, but good nonetheless
Quite a while back, I had posted an article in CodeProject titled " Implementing a Provider Independent Data Access Layer in .NET ". This article illustrated the usage of a simple provider factory, with which data access could be made generic...
Posted: Mon, Aug 2 2004 19:40 by Manoj G | with no comments
Filed under:
My real peek at VB 2005!
My start with VS 2005 has rather been a bit sluggish. I didn’t really work much with the Community Tech Preview, but when I got the Beta 1, I decided to get my hands real dirty with it. At about the same time, I cam across a few excellent resources...
Posted: Thu, Jul 22 2004 17:16 by Manoj G | with 4 comment(s)
Filed under: