public string[] DelSame(string[] ArrInput) ...{ ArrayList nStr = new ArrayList(); for(int i=0;i<ArrInput.Length;i++) ...{ if(!nStr.Contains(ArrInput[i])) ...{ nStr.Add(ArrInput[i]); } } string[] newStr =(string[]) nStr.ToArray(typeof(string)); return newStr; }