WeakEvent<TEventHandler, TEventArgs> Class
In This Article
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
C#
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. |
#Inheritance
System.Object
WeakEvent<TEventHandler, TEventArgs>
#Extension Methods
See Also