所属分类1:
Asp.Net
| 更新时间:2010-1-12 10:59:26
清除字符串数组中的重复项,两种调用方式,第一种为原型,第二种为扩展方法,可以不用限定数组长度第一种(原型):[code:csharp]/// /// 清除字符串数组中的重复项/// /// 字符串数组/// 字符串数组中单个元素的最大长度/// public static string[] DistinctStringArray(string[] strArray, int maxElementLength){Hashtable h = n