摘要: List<T>下的条件Find,FindAll等条件过滤方法需要指定一个用于制定搜索条件的委托才能使用即通过委托告诉其过滤条件根据MSDN的例子://定义一个 Book类型的List集合private static List<Book> Books = new List<Book>();//根据委托条件返回符合条件的记录List<Book> result = Books.Find(delegate(Book bk){ DateTime year2001 = new DateTime(2001,01,01); return bk.Publish_d 阅读全文
posted @ 2011-09-23 15:11 人来人往 阅读(4595) 评论(0) 推荐(0) 编辑