Click here to Skip to main content
15,120,478 members
Articles / General Programming / String

.NET 4: string.IsNullOrWhitespace()

30 Jul 2010CPOL
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.