ContainsExtensions不分区大小写

 public static class ContainsExtensions
    {
        public static bool Contains(this string source, string value, StringComparison comparisonType)
        {
            return (source.IndexOf(value, comparisonType) >= 0);
        }
    }

 

posted @ 2019-05-08 21:25  ligl007  阅读(...)  评论(...编辑  收藏