#region Linq to 集合查询非泛型集合要指定Student类型 //ArrayList list = new ArrayList(); //list.Add(new Student { Name = "Tom", Age = 17 }); //list.Add(new Student { Name = "Jerry", Age = 16 }); //list.Add(…
#region Linq to 泛型集合查询集合包括大写M和年龄小于等于18 //List<Student> list = new List<Student>(); //list.Add(new Student { Name = "Tom", Age = 17 }); //list.Add(new Student { Name = "Jerry", Age = 16 }); …