Interface IEvent<T, H>
Represents instance event.
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public interface IEvent<T, in H> : IEvent, IMember<EventInfo>, ICustomAttributeProvider where H : MulticastDelegate
Type Parameters
Name | Description |
---|---|
T | Type of event declaring type. |
H | Type of event handler. |
Methods
| Improve this Doc View SourceAddEventHandler(T, H)
Add event handler.
Declaration
void AddEventHandler(in T instance, H handler)
Parameters
Type | Name | Description |
---|---|---|
T | instance | Object with declared event. |
H | handler | An event handler to add. |
RemoveEventHandler(T, H)
Remove event handler.
Declaration
void RemoveEventHandler(in T instance, H handler)
Parameters
Type | Name | Description |
---|---|---|
T | instance | Object with declared event. |
H | handler | An event handler to remove. |