Click or drag to resize
EventHandlerUtilsMakeWeakE Method
Creates a weak event handler for an event.

Namespace: VirtualRadar.Interface
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static EventHandler<E> MakeWeak<E>(
	EventHandler<E> eventHandler,
	UnregisterCallback<E> unregister
)
where E : EventArgs

Parameters

eventHandler
Type: SystemEventHandlerE
The delegate that will be called when the event is raised.
unregister
Type: VirtualRadar.InterfaceUnregisterCallbackE
A delegate that will unregister the event from the event handler when the object is garbage collected.

Type Parameters

E
The type of EventArgs that the event uses.

Return Value

Type: EventHandlerE
The event handler for the event.
See Also