登录后复制 List<int> list = new List<int>(); //新增数据 list.Add(123); //修改数据 list[0] = 345; //移除数据 list.RemoveAt(0); //list的排序 list.Sort(); //list的遍历 foreach(int i in list) strTest=i.ToString(); //list找出一个int类型数据 list.Find(); //找出多个int类型的数据 List<int> listnew = list.FindAll(..) //判断是否存在 list.Exist(); //截取(取前10条数据) list.Take(10); //截取(跳过前10条数据) list.Skip(10); // List分页 list.Ship(30).Take(10); 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24. 其他: C#-将List拆分成多个子集合 C#-合并List C#-比较两个List是否相同 作者:꧁执笔小白꧂ 原创作者: u_16822845 转载于: https://blog.51cto.com/u_16822845/11676074