EventHandlerList
Class
Definition
Provides a simple list of delegates. This class cannot be inherited.
public sealed class EventHandlerList : IDisposable
- Inheritance
-
EventHandlerList
- Implements
Inherited Members
System.Object
Examples
For an example of using an EventHandlerList, see How to: Handle Multiple Events Using Event Properties.
Remarks
This class uses a linear search algorithm to find entries in the list of delegates. A linear search algorithm is inefficient when working with a large number of entries. Therefore, when you have a large list, finding entries is slow.
Constructors
| EventHandlerList() |
Initializes a new instance of the EventHandlerList class. |
Properties
| Item[Object] |
Gets or sets the delegate for the specified object. |
Methods
| AddHandler(Object, Delegate) |
Adds a delegate to the list. |
| AddHandlers(EventHandlerList) |
Adds a list of delegates to the current list. |
| Dispose() |
Disposes the delegate list. |
| RemoveHandler(Object, Delegate) |
Removes a delegate from the list. |