Class ExpressionCompileRewriter
Represents a visitor that rewrites a lamba expression for compilation by interpreting ExpressionCompileRewriter attributes
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.dll
Syntax
public class ExpressionCompileRewriter : ExpressionVisitor
Methods
| Edit this page View SourceCompile<T>(Expression<T>)
Optimizes the given expression and compiles it
Declaration
public static T Compile<T>(Expression<T> lambda)
Parameters
Type | Name | Description |
---|---|---|
Expression<T> | lambda | The lambda expression to optimize and compile |
Returns
Type | Description |
---|---|
T | The compiled and optimized expression |
Type Parameters
Name | Description |
---|---|
T | The type of the lambda expression |
VisitMethodCall(MethodCallExpression)
Declaration
protected override Expression VisitMethodCall(MethodCallExpression node)
Parameters
Type | Name | Description |
---|---|---|
MethodCallExpression | node |
Returns
Type | Description |
---|---|
Expression |