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);
                    }
                }
            }

 

posted @ 2016-03-17 10:01  密西西比的深蓝  阅读(137)  评论(0编辑  收藏  举报