C# 判断数组中是否存在某个值
作者:互联网
方法1
1 int[] ia = {1,2,3}; 2 int id = Array.IndexOf(ia,1); // 这里的1就是你要查找的值
方法2
1 string[] strArr = {"a","b","c","d","e"}; 2 bool exists = ((IList)strArr).Contains("a");
参考网址
[1] https://www.cnblogs.com/superelement/p/7691229.html
标签:ia,exists,C#,Contains,strArr,www,int,数组,某个 来源: https://www.cnblogs.com/luyj00436/p/11653343.html