C#에서 문자열이, 공백문자(White Space)나 Null인지 확인하는 함수 if (String.IsNullOrWhiteSpace(strSearch))참고로 해당 함수는 .NET 4.0에서 지원. The correct way in .NET 4.0 is:if (String.IsNullOrWhiteSpace(strSearch))The String.IsNullOrWhiteSpace method used above is equivalent to:if (strSearch == null || strSearch == String.Empty || strSearch.Trim().Length == 0) // String.Empty is the same as ""Reference for IsNullOrWhiteSpace..