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

.NET 4: string.IsNullOrWhitespace()

30 Jul 2010CPOL 4.1K   1   7
try this wayreturn String.IsNullOrEmpty(input.Trim());
Only logged in members can view this content

Please go to the String Table of Contents to view the list of available articles in this section.