Steve Eichert talks about how he likes the new String.IsNullOrEmpty() in .NET 2.0. I agree it is a welcomed addition to the base libraries, and I for one I'm trying to make it a habit of using it whenever I need to do those kinds of comparisons, as it makes the code far simpler and more readable.

Now, what I'd like to see is an extended version that also Trim()s the string and checks to see if that is empty :) (how common is this for validation, huh?)


Tomas Restrepo

Software developer located in Colombia. Sr. PFE at Microsoft.