using System;
using System.Collections;
using System.Collections.Specialized;
namespace test
{
class myTest
{
static void Main()
{
string[] arrInt = new string[] { "1", "1", "2", "3", "4", "33", "4", "66", "77", "2", "44", "33" };
ArrayList arr = new ArrayList();
foreach (string i in arrInt)
{
if (arr.IndexOf(i) < 0)
{
arr.Add(i);
}
}
//输出测试
arrInt = (string[])arr.ToArray(typeof(string));
foreach (string n in arrInt)
{
Console.WriteLine(n);
}
}
}
}