C#数组去掉重复的元素

static string[] DelRepeatData(string[] a) { return a.GroupBy(p => p).Select(p => p.Key).ToArray(); }

posted @ 2016-08-13 11:29  TheSongOfSoul  阅读(4711)  评论(0编辑  收藏  举报