List去重复

   for (int i = 0; i < List.Count; i++)
            {
                for (int j = List.Count - 1; j > i; j--)
                {
                    if (List[i] == List[j])
                    {
                        List.RemoveAt(i);
                    }
                }
            }
原文地址:https://www.cnblogs.com/sl-Blog/p/5286225.html