Raise(params dynamic?[])
Generates run-time code that raises the current event with arguments specified as run-time C# expressions.
Declaration
dynamic? Raise(params dynamic?[] args)Parameters
| Type | Name | Description |
|---|---|---|
| dynamic[] | args | A list of run-time C# expressions to be passed to the event as arguments. If the compile-time type
of any expression is |
Returns
| Type | Description |
|---|---|
| dynamic | A dynamic object representing the return value of the event, if any. If the compile-time type
of any expression is |
Remarks
By default, the event is accessed on the current object (this), unless the event is static. The base implementation
of the event is invoked, i.e. the implementation before the current aspect layer. To change the default values,
use the WithOptions(InvokerOptions) method.
Raise(params IExpression[])
Generates run-time code that raises the current event with arguments specified as compile-time IExpression objects.
Declaration
dynamic? Raise(params IExpression[] args)Parameters
| Type | Name | Description |
|---|---|---|
| IExpression[] | args | A list of run-time C# expressions to be passed to the event as arguments. If the compile-time type
of any expression is |
Returns
| Type | Description |
|---|---|
| dynamic | A dynamic object representing the return value of the event, if any. If the compile-time type
of any expression is |
Remarks
By default, the event is accessed on the current object (this), unless the event is static. The base implementation
of the event is invoked, i.e. the implementation before the current aspect layer. To change the default values,
use the WithOptions(InvokerOptions) method.