Table of Contents

Method MakeWeak

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

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 EventHandler

The EventHandler

unregister UnregisterCallback

EventHandler unregister delegate

Returns

EventHandler

An EventHandler

MakeWeak(PropertyChangedEventHandler, PropertyChangedUnregisterCallback)

Extension method for EventHandler

public static PropertyChangedEventHandler MakeWeak(this PropertyChangedEventHandler eventHandler, PropertyChangedUnregisterCallback unregister)

Parameters

eventHandler PropertyChangedEventHandler

The PropertyChangedEventHandler

unregister PropertyChangedUnregisterCallback

EventHandler unregister delegate

Returns

PropertyChangedEventHandler

An EventHandler