1.去除数组重复的项
/// <summary> /// 去除SubSiteIds数组中重复的项 /// </summary> /// <param name="ArrInput"></param> /// <returns></returns> private string[] removeDuplicate(string[] ArrInput) { ArrayList nStr = new ArrayList(); for (int i = 0; i < ArrInput.Length; i++) { if (!nStr.Contains(ArrInput[i])) { nStr.Add(ArrInput[i]); } } return (string[])nStr.ToArray(typeof(string)); }