查询的执行次序和途径并非强制指定的,相反,它可以对表达树进行分析,以发现你所期望的结果,然后再决定如何处理;
Instead, it can analyze the expression tree, discover what you want done, and then decide how to do it.
使用LinQ解决此问题的解决方法是使用表达树,这是一种类似反射的机制,您不仅可以用它反射类的成员,还可以用它反射某个方法的代码。
The LinQ solution for this problem is expression trees, a reflection-like mechanism whereby you can reflect over not only a class's members, but also a method's code.
在希腊神话中,雅典娜女神将橄榄树送给雅典人,雅典人以她的名字命名这座城市以表达他们的感激之情。
In Greek mythology, the goddess Athena gave the olive tree to the people of Athens, who showed their gratitude by naming the city after her.
应用推荐