MockedEventGetEventHandle Method

Typemock Isolator Developer Guide
Retrieve the EventHandle

Namespace:  TypeMock
Assembly:  TypeMock (in TypeMock.dll) Version: 9.3.6.0 (9.3.6.0)
Syntax

public virtual Delegate GetEventHandle()

Return Value

Type: Delegate
The Event

Implements

IMockedEventGetEventHandle
Remarks

Using GetEventHandle can help write type-safe tests by casting the EventHandle to the correct Event Type Example
EventHandler fire = handle.GetEventHandle() as EventHandler;
fire(this, EventArgs.Empty);
See Also

Reference