测试环境:https://try.dot.net/
Console.WriteLine(string.IsNullOrWhiteSpace("")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(null)); --> True
Console.WriteLine(string.IsNullOrWhiteSpace(" ")); --> False