你能用表达式树做些什么呢?
表达式树在任何语言中都是一个强大的功能。
如下是一些可能比较有趣的表达式树的用法。
Here are some USES of expression trees that may be interesting.
定义查询表达式树中的文字节点。
定义查询表达式树中的函数节点。
DLR使用表达式树来表示语言语义。
The DLR USES expression trees to represent language semantics.
参考程序#计算表达式树的值的算法。
我目前想数学表达式解析为表达式树。
I'm currently trying to parse math expression into expression tree.
推断表达式树内数据,并对它做自定义处理。
Reason about the data in the expression tree, and do custom processing over it.
MetaLinq并不是唯一对表达式树进行编辑的方法。
IBMJIT编译器使用一个表达式树序列表示方法的操作。
The IBM JIT compiler USES a sequence of expression trees to represent the method's operations.
你也能将表达式树中的数据转换到其他的域的数据形式(如xml)。
You can also convert the data in the expression tree into another domain (such as XML).
另一种可能是传入一段源代码并返回一颗表达式树,而不是一个编译好的程序集。
One proposed option would be passing in some source code and being returned an expression tree instead of just a compiled assembly.
查询表达式可以编译为表达式树或委托,具体取决于查询所应用到的类型。
Query expressions can be compiled to expression trees or to delegates, depending on the type that the query is applied to.
函数库被保证,一旦这些函数库引用了一个表达式树后,表达式树就不再改变。
Libraries are guaranteed that once they have a reference to an expression tree, that expression tree will never change.
联编程序将封装语言的语义,并指定如何使用表达式树在调用站点中执行操作。
Binders encapsulate a language's semantics and specify how to perform operations in a call site by using expression trees.
用.Compile()方法去将一个表达式树转换为一个委托,然后你可以执行它。
Use the .Compile() method to turn the expression tree into a delegate so that you can execute it.
他在那篇文章里用了非常好的图表来表现说明一些Lambda树的表达式树表示形式。
He has a great diagram there showing the expression tree representation of a few lambda expressions.
他举出了大量的例子告诉你如何巧妙地处理那些表达式树和编译你的带自定义条件的lambda表达式。
He has a great example of how you can manipulate the expression trees and build custom conditions in your lambda expressions.
开发人员如果想编辑表达式树,那么不得不通过拷贝现有的一个(表达式树)来手动的创建一个新的。
Developers wishing to edit one have to manually build new expressions by copying existing ones.
CriteriaQuery在运行时被构建为一个强类型查询表达式树,本文通过一系列例子展示了它的用法。
A CriteriaQuery is constructed at run time as a tree of strongly typed query expressions whose use the article has illustrated with a series of code examples.
表达式树是lambda表达式的一种数据表示形式,它能使你更方便地读取和推断lambda表达式。
An expression tree is a data representation of the lambda expression in a form that is easy for you to read and reason about the lambda expression in.
Moq是利用诸如Linq表达式树和Lambda表达式等.NET 3.5的特性,为.NET设计和开发的Mocking库。
Moq is a mocking library for .NET designed and developed to utilize .NET 3.5 features, e.g., Linq expression trees and lambda expressions.
其中第二条是很有趣的,因为它意味着你能将一个lambda表达式复制进一个表达式树,推断它,并将它转换为一个可调用委托。
Item 2 is interesting, because it means that you can write a lambda expression into an expression tree, reason about it, etc, and then turn it into a callable delegate.
IanGriffiths在他关于表达式树文章中,给出了一个非常不错的Lambda表达式介绍,以及Lambda与表达式树的关系。
In his article on expression trees Ian Griffiths gives a great introduction to lambda expressions and their relation to expression trees.
没有表达式树的话,我们是不可能用描述格式来表示一个表达式的。他们唯一的表示方式是IL(中间语言),这种语言对于重新表述用户的意图来说太低层次了。
Without expression trees, its impossible to describe expressions in a descriptive format; the only description of them is IL, which is too low level to re-create the user's intent for the expression.
没有表达式树的话,我们是不可能用描述格式来表示一个表达式的。他们唯一的表示方式是IL(中间语言),这种语言对于重新表述用户的意图来说太低层次了。
Without expression trees, its impossible to describe expressions in a descriptive format; the only description of them is IL, which is too low level to re-create the user's intent for the expression.
应用推荐