Bytes2you.Validation.Helpers.StringHelper.IsNullOrWhiteSpace C# (CSharp) Method

IsNullOrWhiteSpace() public static method

public static IsNullOrWhiteSpace ( string value ) : bool
value string
return bool
        public static bool IsNullOrWhiteSpace(string value)
        {
            if (value == null)
            {
                return true;
            }

            for (int i = 0; i < value.Length; i++)
            {
                if (!char.IsWhiteSpace(value[i]))
                {
                    return false;
                }
            }

            return true;
        }