如下是一些可能比较有趣的表达式树的用法。
Here are some USES of expression trees that may be interesting.
定义查询表达式树中的文字节点。
定义查询表达式树中的函数节点。
DLR使用表达式树来表示语言语义。
The DLR USES expression trees to represent language semantics.
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.
您可以添加消息树的新数据类型或元素,以便在表达式中使用。
You have the ability to add new data types or elements of the message tree for use in the expression.
我们可以从完整的文件创建语法树,也可以从松散的声明或者表达式生成它。
A syntax tree can be created from an entire file or just a loose statement or expression.
抽象语法树是一个表示为对象集合的表达式。
An abstract syntax tree is an expression represented as a collection of objects.
简单的非递归过程表达式并不能访问所有的元素,尽管许多库都包含有帮助功能,可以用于遍历树。
No simple non-recursive procedural expression accesses all elements, although many libraries include helper functions for walking the tree.
与以前一样,可以使用xsl: copy- of将整个idn树复制到输出,但是也可在路径表达式中使用该变量而不需要转换成节点集。
You can use XSL: copy-of to copy the whole IDN tree to the output, as before, but you can also use the variable in a path expression without a node-set conversion.
XPath支持在XML树中移动、根据节点名称或通过使用Boolean表达式选择节点以及对一系列节点应用函数。
XPath provides primitives for moving around the XML tree, for selecting nodes according to name or by the use of a Boolean expression, and for applying functions to a sequence of nodes.
运行时api,诸如dom,正在倾向于允许程序员编写XPath表达式而不是编写明确的树遍历代码(后者是一个痛苦的过程)。
Runtime APIs, such as DOM, are moving towards allowing programmers to write XPath expressions rather than writing explicit tree traversal code (which can be painful).
XPath提供从HTML文档树定位和检索单个节点或节点集所需的表达式语言。
XPath provides the expression language necessary to locate and retrieve individual nodes or node collections from the HTML document tree.
XPath提供从HTML文档树定位和检索单个节点或节点集所需的表达式语言。
XPath provides the expression language necessary to locate and retrieve individual nodes or node collections from the HTML document tree.
应用推荐