I faced a problem where invisible character \\0
which is pretty like a \'white space\' not considered as white space by the string.IsNullOrWhiteSpace method. I
'\0' character is not considered white space. See Char.IsWhitespace() for the list of characters that are considered white space.
Use Enumerable.All() if you have your own requirements, or even just to add a few chars of your own. Something like this:
bool IsMyKindOfWhiteSpace(string input)
{
char[] more = new char[] { };
return input.All(x => Char.IsWhiteSpace(x) || more.Contains(x));
}