Null Or Empty Coalescing

Posted by Latest Microsoft Blogs on ASP.net Weblogs See other posts from ASP.net Weblogs or by Latest Microsoft Blogs
Published on Thu, 17 Jun 2010 04:35:49 GMT Indexed on 2010/06/17 6:43 UTC
Read the original article Hit count: 291

In my last blog post, I wrote about the proper way to check for empty enumerations and proposed an IsNullOrEmpty method for collections which sparked a lot of discussion. This post covers a similar issue, but from a different angle. A very long time ago Read More......(read more)

© ASP.net Weblogs or respective owner

Null Or Empty Coalescing

Posted on Dot net Slackers See other posts from Dot net Slackers
Published on Thu, 17 Jun 2010 00:00:00 GMT Indexed on 2010/06/17 6:54 UTC
Read the original article Hit count: 290

Filed under:
In my last blog post, I wrote about the proper way to check for empty enumerations and proposed an IsNullOrEmpty method for collections which sparked a lot of discussion. This post covers a similar issue, but from a different angle. A very long time ago, I wrote about my love for the null coalescing operator. However, over time, Ive found it to be not quite as useful as it could be when dealing with strings. For example, heres the code I might want to write: public static void DoSomething(string...

Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.



Email this Article

© Dot net Slackers or respective owner

Related posts about ASP.NET

Related posts about Software Development