拆分逗号为数组,判断是否匹配
string[] array1 = "jankiE,aaA".Split(','); List<string> listLower = new List<string>(); foreach (string s in array1) { listLower.Add(s.ToLower()); } bool result1 = listLower.Contains("JANkie".ToLower()); Console.WriteLine(result1);
翻译
搜索
复制