摘要:ArrayList 去除重複值(Distinct)
protected ArrayList GetDistinctAarray(ArrayList arr)
{
ArrayList lst = new ArrayList();
for (int i = 0; i < arr.Count; i++)
{
if (lst.Contains(arr[i]))
continue;
lst.Add(arr[i]);
}
return lst;
}