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  阅读(150)  评论(0编辑  收藏  举报