日期:2014-05-17  浏览次数:20439 次

谁帮我解释下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进场,呵呵