标签:
1 public static class ArrayListHelper 2 { 3 /// <summary> 4 /// determine whether the array list contain the sepcific string 5 /// </summary> 6 /// <param name="source"></param> 7 /// <param name="obj"></param> 8 /// <returns></returns> 9 public static bool ContainsRegardlessCase(this ArrayList source, string obj) 10 { 11 for (int i = 0; i < source.Count; i++) 12 { 13 string str = source[i].ToString(); 14 if (str.ToUpper() == obj.ToUpper()) 15 { 16 return true; 17 } 18 } 19 return false; 20 } 21 }
标签:
原文地址:http://www.cnblogs.com/JustYong/p/4441797.html