Catel.StringExtensions.ContainsIgnoreCase C# (CSharp) Method

ContainsIgnoreCase() public static method

Determines whether the specified string contains the value to check.
public static ContainsIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
return bool
        public static bool ContainsIgnoreCase(this string str, string valueToCheck)
        {
            var index = IndexOfIgnoreCase(str, valueToCheck);
            return index >= 0;
        }