日期:2014-05-18 浏览次数:20728 次
List<int> num = new List<int>() { 2, 9, 9, 2, 3, 9 }; num.distinct(); foreach (int item in num) { for (int i = 0; i < num.Distinct().Count(); i++) { if (f.List.Cell(1, 1).Text.Length < sj.Distinct().Count()) { f.List.Cell(1, 1).Text = f.List.Cell(1, 1).Text + sj[i].ToString(); } } }
f.List.Cell(1, 1).Text = string.Join("", num.Distinct().ToArray());
------解决方案--------------------