AddHandler(ref object, Delegate)
Invoke the Add semantic on the next node in the chain of invocation.
Declaration
void AddHandler(ref object instance, Delegate handler)Parameters
| Type | Name | Description |
|---|---|---|
| object | instance | Target instance on which the event is defined ( |
| Delegate | handler | Handler to be added to the event. |
Remarks
<p>
The
instance
parameter is passed by reference so that instance methods of value types (
struct
in C#) are allowed to change the value of the instance.