[C#] 怎么删除ArrayList中的重复值

来源:互联网 发布:阿里云 waf 价格 编辑:程序博客网 时间:2024/05/17 02:49
static void Main(string[] args)     {         int[] arr = { 3, 9, 23, 5, 7, 3, 15, 19, 3 };         do {                list.Remove(3);            } while (list.Contains(3));         foreach (int i in list)         {                Console.Write(i + " ");         }     }想法比较单纯,先记录下来,如有错误,请指正。


 

原创粉丝点击