读书人

哪位高手帮小弟我解释下void Delete(E

发布时间: 2013-10-11 14:52:39 作者: rapoo

谁帮我解释下void Delete(Expression<Func<T, bool>> where);
Delete 里面 Expression<Func<T, bool>> where 这个应该怎么理解呢
[解决办法]
Expression<Func<T, bool>> where
说明 where 变量的类型是Expression<Func<T, bool>>
也就是一个输入参数为T没,输出参数为bool的Lambda表达式。
比如有方法:
void Delete(Expression<Func<T, bool>> where);
你可以这么用:
Delete(x => x == "需要删除");
[解决办法]
mvp进场,呵呵

读书人网 >asp.net

热点推荐