日期:2014-05-20 浏览次数:20792 次
public class Student
{
public int ID { get; set; }
public string Name { get; set; }
public string Sex { get; set; }
}
//辅助类
public class NewStudent
{
public int ID { get; set; }
public string Name { get; set; }
public string Sex { get; set; }
public int Row { get; set; }
}
static void Main(string[] args)
{
List<Student> listStudent = new List<Student>() {
new Student() { ID = 2, Name = "aa", Sex = "女" },
new Student() { ID = 1, Name = "bb", Sex = "男" },
new Student() { ID = 3, Name = "cc", Sex = "女" },
new Student() { ID = 4, Name = "dd", Sex = "男" },
new Student() { ID = 6, Name = "ee", Sex = "女" },
new Student() { ID = 5, Name = "dd", Sex = "男" },
new Student() { ID = 7, Name = "xx", Sex = "男" },