CreateInvokeExpression(params IEnumerable<IExpression>)
Creates an IExpression that represents the invocation of the method with specific arguments represented by IExpression objects.
Declaration
IExpression CreateInvokeExpression(params IEnumerable<IExpression> args)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IExpression> | args | The list of arguments passed to the method. |
Returns
| Type | Description |
|---|---|
| IExpression | An IExpression. |
Remarks
By default, the method is invoked on the current object (this), unless the method is static. The base implementation
of the method is invoked, i.e. the implementation before the current aspect layer. To change the default values,
or to use the ?. null-conditional operator, use the WithOptions(InvokerOptions) method.
CreateInvokeExpression(params IEnumerable<dynamic?>)
Creates an IExpression that represents the invocation of the method with specific arguments represented by C# expressions.
Declaration
IExpression CreateInvokeExpression(params IEnumerable<dynamic?> args)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<dynamic> | args | The list of C# expressions passed to the method. If the compile-time type
of any expression is |
Returns
| Type | Description |
|---|---|
| IExpression | An IExpression. |
Remarks
By default, the method is invoked on the current object (this), unless the method is static. The base implementation
of the method is invoked, i.e. the implementation before the current aspect layer. To change the default values,
or to use the ?. null-conditional operator, use the WithOptions(InvokerOptions) method.