摘要: 查询操作符和扩展方法查询操作符是linq的一个重要设施,linq使用扩展方式定义查询操作;例如where 操作符:初始linq表达式Linq 核心实现 1 public static IEnumerable<T> Where<T>(this IEnumerable<T> source, Func<T, bool> predicate) 2 { 3 foreach (T item in source) 4 { 5 if (predicate(item)) 6 { 7 ... 阅读全文
posted @ 2012-06-20 01:04 石 磊 阅读(353) 评论(0) 推荐(0) 编辑