WeakEvent<TEventHandler, TEventArgs> Class
Provides access to a mechanism used to manage events in a way that prevents memory leaks caused by strong references between event publishers and subscribers.
Namespace: DevExpress.Maui.Mvvm
Assembly: DevExpress.Maui.Mvvm.dll
NuGet Package: DevExpress.Maui.Mvvm
#Declaration
public sealed class WeakEvent<TEventHandler, TEventArgs>
#Type Parameters
Name | Description |
---|---|
TEvent |
The type of the event handler delegate used to subscribe to the event. |
TEvent |
The type of event arguments passed to the event handler. |