拆分逗号为数组,判断是否匹配

拆分逗号为数组,判断是否匹配

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);

 

posted on 2023-03-08 17:02  Jankie1122  阅读(11)  评论(0编辑  收藏  举报