摘要: List<Student> stuList;(这个里面假设已经有值了,Student 里面有ID,Name)ConvertAll:List<string> strNameList = stuList.ConvertAll(p=>p.Name).ToList();//这样就将Student中的名字取出来了。FindAll:List<Student> stuList1 = stulist.FindAll(p=>p.Name = "");ForEach:List<Student> stuList1 = stulist.F 阅读全文
posted @ 2011-10-14 15:52 pnljs 阅读(379) 评论(0) 推荐(0) 编辑