Allows adding/removing delegates to/from events.
Namespace: Metalama.Framework.Code.Invokers
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface IEventInvokerMethods
| Name | Description |
|---|---|
| Add(dynamic?) | Generates run-time code that adds a given handler to the event. By default, the target instance
of the event is |
| Raise(params dynamic?[]) | Generates run-time code that raises the current event with specified arguments. By default, the target instance
of the event is |
| Remove(dynamic?) | Generates run-time code that removes a given handler from the event. By default, the target instance
of the event is |
| With(InvokerOptions) | Gets an IEventInvoker for the same event and target but with different options. |
| With(dynamic?, InvokerOptions) | Gets an IEventInvoker for the same event but with a different target instance and optionally different options. |