Atoms.Web.StringHelpers.EqualsIgnoreCase C# (CSharp) Method

EqualsIgnoreCase() public static method

public static EqualsIgnoreCase ( this a, string b ) : bool
a this
b string
return bool
        public static bool EqualsIgnoreCase(this string a, string b)
        {
            if (String.IsNullOrWhiteSpace(a))
            {
                return String.IsNullOrWhiteSpace(b);
            }

            return String.Equals(a, b, StringComparison.OrdinalIgnoreCase);
        }
StringHelpers