标签:
string[] elements = new string[50]; if ( Array.IndexOf<string>( elements, "sss" ) != -1 ) { //存在 //返回的值就是 "sss" 在数组中的下标 } else { //不存在 }标签:
原文地址:http://www.cnblogs.com/CESC4/p/4566607.html