System.StringHelper.EndsWithIgnoreCase C# (CSharp) Method

EndsWithIgnoreCase() public static method

忽略大小写的字符串结束比较,判断是否以任意一个待比较字符串结束
public static EndsWithIgnoreCase ( String value ) : System.Boolean
value String 字符串
return System.Boolean
        public static Boolean EndsWithIgnoreCase(this String value, params String[] strs)
        {
            if (String.IsNullOrEmpty(value)) return false;

            foreach (var item in strs)
            {
                if (value.EndsWith(item, StringComparison.OrdinalIgnoreCase)) return true;
            }
            return false;
        }