Class DelegateInvocationInliner
Provides an expression tree optimization by inlining invocations to delegates as method calls.
Inheritance
System.Object
DelegateInvocationInliner
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public static class DelegateInvocationInliner : Object
Methods
Apply(Expression, Boolean)
Inlines delegate invocations in the specified expression by using method call expressions.
Declaration
public static Expression Apply(Expression expression, bool inlineNonPublicMethods)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to inline delegate invocations for. |
System.Boolean | inlineNonPublicMethods | Indicates whether to inline non-public methods. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | Optimized expression with delegate invocations inlined as method call expressions. |