C# 3.0:

List<int> array = new List<int> { 1, 2, 3, 1, 4 };

array.Distinct().ToList();

posted on 2012-08-16 11:53  寒云  阅读(548)  评论(0编辑  收藏  举报