========c#集合泛型List<T>==========
1:List<T>的使用
1-1:
System.Collections.Generic
List<Student> students = new List<Student>();
2:遍历List<Student>集合
2-1:
foreach (Student stu in students)
{
Console.WriteLine(stu.Name);
}
2-2:3:使用泛型集合List<T>
3-1:
List<T>的访问方式与ArrayList相同
Nearth===014/c#集合泛型List<T>
最新推荐文章于 2021-02-19 04:36:04 发布