Geeks With Blogs
.NET Development and Design Gerardo Calderon August 2011 Entries
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 I recently started working with Visual Studio 2010 and .NET 4.0 and I came across one of the new language features, String.IsNullWithWhiteSpace. Basically, it's an enhanced version of the commonly used String.IsNullOrEmpty. This new enhanced version goes a step forward and checks for whitespaces such as tabs. String myString = “ “; //returns false Bool result = String.IsNullOrEmpty(myStri... //returns true Bool result = String.IsNullOrWhiteSpace(m... ......

Posted On Friday, August 26, 2011 7:55 AM

Copyright © gerardosblog | Powered by: