New function string.IsNullOrWhiteSpace() in VS2010

New function string.IsNullOrWhiteSpace() is available for Checking String variables.

We have already used variable string.IsNullOrEmpty to check whether string is empty or null. But in case the string is having whitespaces then we were using string.trim() to trim the whitespaces.

Now in VS2010 we can achieve the same using a single function string.IsNullOrWhiteSpace().

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>