Provides methods for adding and removing handlers from an event.
public class EventInfo<TSource, TEventHandler>
where TEventHandler : class
parameter | description |
---|---|
TSource | The type of the source. |
TEventHandler | The type of the event handler. |
name | description |
---|---|
EventInfo(…) | Initializes a new instance of the EventInfo class. |
AddHandler(…) | Adds an event handler to the event of the specified source. |
RemoveHandler(…) | Removes an event handler from the event of the specified source. |
Subscribe(…) | Subscribes to the event of the specified source. |
This class does not have a mechanism for raising the event. It is designed to provide clients with generic-type-compatible access to events.