Catel.StringExtensions.IndexOfIgnoreCase C# (CSharp) Method

IndexOfIgnoreCase() public static method

Determines the index of the value to check inside the specified string.
public static IndexOfIgnoreCase ( this str, string valueToCheck ) : int
str this The string.
valueToCheck string The value to check.
return int
        public static int IndexOfIgnoreCase(this string str, string valueToCheck)
        {
            var index = str.IndexOf(valueToCheck, StringComparison.OrdinalIgnoreCase);
            return index;
        }