一种方法是把字符串转成小写/大写,然后包含的字符串也写成小写 /大写
另一种方法是:
1 string title = "STRING"; 2 bool contains = title.IndexOf("string", StringComparison.OrdinalIgnoreCase) >= 0;
参考:
一种方法是把字符串转成小写/大写,然后包含的字符串也写成小写 /大写
另一种方法是:
1 string title = "STRING"; 2 bool contains = title.IndexOf("string", StringComparison.OrdinalIgnoreCase) >= 0;
参考: