摘要: 借助老外写的一个扩展表达式的类,可以把上篇中的代码写得更优雅这是PredicateBuilder的源文件publicstaticclassPredicateBuilder...{publicstaticExpression<Func<T,bool>>True<T>()...{returnf=>true;}publicstaticExpression<... 阅读全文
posted @ 2008-03-25 22:34 菩提树下的杨过 阅读(5603) 评论(6) 推荐(0) 编辑
摘要: 老外写的一个不错的扩展表达式的文章,原文地址:http://www.albahari.com/nutshell/predicatebuilder.html Dynamically Composing Expression PredicatesSuppose you wanted to write a LINQ to SQL query that implemented a keyword-styl... 阅读全文
posted @ 2008-03-25 22:16 菩提树下的杨过 阅读(935) 评论(2) 推荐(0) 编辑