Catel.StringExtensions.IndexOfIgnoreCase C# (CSharp) Метод

IndexOfIgnoreCase() публичный статический Метод

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.
Результат int
        public static int IndexOfIgnoreCase(this string str, string valueToCheck)
        {
            var index = str.IndexOf(valueToCheck, StringComparison.OrdinalIgnoreCase);
            return index;
        }