SyntaxFix
Write A Post
Hire A Developer
Questions
Old question, but thought I'd add this to help out,
#if DOTNET35 bool isTrulyEmpty = String.IsNullOrEmpty(s) || s.Trim().Length == 0; #else bool isTrulyEmpty = String.IsNullOrWhiteSpace(s) ; #endif