WeakEventTSender, TEventArgs Class

Manages subscriptions to events using weak listeners.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public sealed class WeakEvent<TSender, TEventArgs> : WeakEvent
where TSender : class
where TEventArgs : EventArgs
Inheritance
Object    WeakEvent    WeakEventTSender, TEventArgs

Type Parameters

TSender
TEventArgs

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Subscribe(TSender, IWeakEventSubscriberTEventArgs) 
ToStringReturns a string that represents the current object.
(Inherited from Object)
Unsubscribe(TSender, IWeakEventSubscriberTEventArgs) 

See Also