Method MakeWeak
MakeWeak<T>(EventHandler<T>, UnregisterCallback<T>)
Extension method for EventHandler.
public static EventHandler<T> MakeWeak<T>(this EventHandler<T> eventHandler, UnregisterCallback<T> unregister) where T : EventArgs
Parameters
eventHandler
EventHandler<T>The EventHandler
unregister
UnregisterCallback<T>EventHandler unregister delegate
Returns
- EventHandler<T>
An EventHandler
Type Parameters
T
The type
MakeWeak(EventHandler, UnregisterCallback)
Extension method for EventHandler
public static EventHandler MakeWeak(this EventHandler eventHandler, UnregisterCallback unregister)
Parameters
eventHandler
EventHandlerThe EventHandler
unregister
UnregisterCallbackEventHandler unregister delegate
Returns
- EventHandler
An EventHandler
MakeWeak(PropertyChangedEventHandler, PropertyChangedUnregisterCallback)
Extension method for EventHandler
public static PropertyChangedEventHandler MakeWeak(this PropertyChangedEventHandler eventHandler, PropertyChangedUnregisterCallback unregister)
Parameters
eventHandler
PropertyChangedEventHandlerThe PropertyChangedEventHandler
unregister
PropertyChangedUnregisterCallbackEventHandler unregister delegate
Returns
- PropertyChangedEventHandler
An EventHandler