Catel.StringExtensions.EndsWithIgnoreCase C# (CSharp) Method

EndsWithIgnoreCase() public static method

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.
return bool
        public static bool EndsWithIgnoreCase(this string str, string valueToCheck)
        {
            var endsWith = str.EndsWith(valueToCheck, StringComparison.OrdinalIgnoreCase);
            return endsWith;
        }