List<room> list=new List<room>();
list.Sort(delegate(room a, room b) { return a.id.CompareTo(b.id); });根据字段的属性值排序
list.Find(delegate(room p) { return p.id ==1; });根据字段的属性值在集合中查找
List<room> list=new List<room>();
list.Sort(delegate(room a, room b) { return a.id.CompareTo(b.id); });根据字段的属性值排序
list.Find(delegate(room p) { return p.id ==1; });根据字段的属性值在集合中查找