#region 移除数组中重复数据 /// <summary> /// 移除数组中重复数据 /// </summary> /// <param name="array">需要除重的数组</param> /// <returns>不重复数组</returns> public static string[] DelRepeatData(string[] array) { return array.GroupBy(p => p).Select(p => p.Key).ToArray(); } #endregion
原文地址:http://blog.csdn.net/jiankunking/article/details/46529505