Only those expression trees that represent functions, namely Expression<(Of <(TDelegate>)>) and its parent type LambdaExpression, can be compiled into executable code. To execute other types of expression trees, you must first wrap them in a LambdaExpression node. You can obtain such a LambdaExpression by calling the Lambda method and passing the expression tree as the argument.
Which Expression trees can compiled into executed code
最新推荐文章于 2021-09-02 05:23:49 发布