public class Student // Object entity
{ private int _id; private string _name; public int ID { set{_id = value;} get{ return _id;} } public string Name { set{_name = value;} get{ return _name;} }
}
泛型
List<Student> stuList = new List<Student>();
stuList.Add(...);
...