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

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

Determines whether the string ends with the value to check.
public static EndsWithIgnoreCase ( this str, string valueToCheck ) : bool
str this The string.
valueToCheck string The value to check.
Результат bool
        public static bool EndsWithIgnoreCase(this string str, string valueToCheck)
        {
            var endsWith = str.EndsWith(valueToCheck, StringComparison.OrdinalIgnoreCase);
            return endsWith;
        }