#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
The above is the content of C# to remove duplicate data in the array. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!