static void DistinctTest()
{
int[] echo = { 1, 1, 2, 3, 4, 5, 5, 6, 6, 7, 8, 9, 8, 10 };
IEnumerable<int> ienumerable = echo.Distinct();//去重,返回IEnumerable
int[] newecho = ienumerable.ToArray();//重新转换成数组
foreach (int i in newecho)
{
Console.WriteLine(i);
}
Console.ReadKey();
}