查询的执行次序和途径并非强制指定的,相反,它可以对表达树进行分析,以发现你所期望的结果,然后再决定如何处理;
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.
开发人员必须按照树操作表达自己的问题。
You, the developer, have to express your problem in terms of tree manipulation.
应用推荐