Click here to Skip to main content
15,867,834 members
Articles / General Programming / String

.NET 4: string.IsNullOrWhitespace()

Rate me:
Please Sign up or sign in to vote.
4.68/5 (17 votes)
17 May 2010CPOL 29.4K   7  
Any string input can have these many possible states1) String is null2) String is empty3) String contains nothing but white space4) String has some contentTill now, .NET had static method for stringbool string.IsNullOrEmpty()which handled first two conditions for...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Microsoft India R&D Pvt. Ltd. Hyderabad
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions