Wednesday, May 28, 2014

if (!string.IsNullOrEmpty(whatever)) {

This sanity check for determining if a string is either null or not null while yet containing zero characters is now, finally, a part of the .NET Framework. Remember when you had to write an extension method for string to deal with this stuff?

No comments:

Post a Comment