C# 判断字符是否在字符串数组中

string[] strArr = { "a", "b", "c", "d" }; 
bool exists = ((System.Collections.IList)strArr).Contains("a");

离神越近,感觉自己越渺小。
原文地址:https://www.cnblogs.com/bo0214/p/15711401.html