泛型集合排序

Student sModel = new Student();
List<Student > list = new List<Student >();
list= list.OrderBy(s=> s.Age).ThenBy(s => s.Sort).ToList();

  

猜你喜欢

转载自www.cnblogs.com/cynthia0706/p/10223378.html