摘要: /// <summary>要查询的对象</summary>class Employee { public int ID { get;set; } public string FName { get; set; } public int Age { get; set; } public char Sex { get; set; }}如果对这个类的Age和Sex的连个字段进行分组,方法如下:// 先造一些数据List<Employee> empList = new List<Employee>();empList.Add(new Employee() 阅读全文
posted @ 2011-12-12 15:12 awp110 阅读(763) 评论(0) 推荐(0)