CreateInvokeExpression()
Creates an IExpression that represents the invocation of constructor without arguments.
Declaration
IObjectCreationExpression CreateInvokeExpression()Returns
| Type | Description |
|---|---|
| IObjectCreationExpression | An IExpression. |
CreateInvokeExpression(params IEnumerable<IExpression>)
Creates an IExpression that represents the invocation of constructor, where arguments are represented by IExpression.
Declaration
IObjectCreationExpression CreateInvokeExpression(params IEnumerable<IExpression> args)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IExpression> | args | The list of compile-time IExpression objects passed to the method as arguments. |
Returns
| Type | Description |
|---|---|
| IObjectCreationExpression | An IExpression that represents the method invocation. |
CreateInvokeExpression(params dynamic?[])
Creates an IExpression that represents the invocation of constructor, where arguments are passed as C# expressions.
Declaration
IObjectCreationExpression CreateInvokeExpression(params dynamic?[] args)Parameters
| Type | Name | Description |
|---|---|---|
| dynamic[] | args | The list of run-time C# expressions passed to the method. If the compile-time type
of any expression is |
Returns
| Type | Description |
|---|---|
| IObjectCreationExpression | An IExpression that represents the method invocation. |