拆分逗号为数组,判断是否匹配
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);
翻译
搜索
复制
标签:数组,array1,拆分,逗号,listLower,string From: https://www.cnblogs.com/jankie1122/p/17193151.html