System.StringHelper.IsNullOrWhiteSpace C# (CSharp) Method

IsNullOrWhiteSpace() public static method

是否空或者空白字符串
public static IsNullOrWhiteSpace ( String value ) : Boolean
value String 字符串
return Boolean
        public static Boolean IsNullOrWhiteSpace(this String value)
        {
            if (value != null)
            {
                for (var i = 0; i < value.Length; i++)
                {
                    if (!Char.IsWhiteSpace(value[i])) return false;
                }
            }
            return true;
        }