WeakEventHandlerT Class

Represents a weak event handler for events with EventArgs of type T.

Definition

Namespace: SnapDB.Threading
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class WeakEventHandler<T> : WeakDelegateBase<EventHandler<T>>
where T : EventArgs
Inheritance
Object    WeakReference    WeakDelegateBaseEventHandlerT    WeakEventHandlerT

Type Parameters

T
The type of EventArgs used by the event.

Constructors

WeakEventHandlerT Initializes a new instance of the WeakEventHandlerT class with the specified event handler target.

Properties

IsAliveGets an indication whether the object referenced by the current WeakReference object has been garbage collected.
(Inherited from WeakReference)
TargetGets or sets the object (the target) referenced by the current WeakReference object.
(Inherited from WeakReference)
TrackResurrectionGets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized.
(Inherited from WeakReference)

Methods

Equals(Object) Determines whether the current WeakDelegateBaseT instance is equal to another object.
(Inherited from WeakDelegateBaseT)
Equals(WeakDelegateBaseT) Determines whether the current WeakDelegateBaseT instance is equal to another WeakDelegateBaseT instance.
(Inherited from WeakDelegateBaseT)
FinalizeDiscards the reference to the target represented by the current WeakReference object.
(Inherited from WeakReference)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetObjectDataPopulates a SerializationInfo object with all the data needed to serialize the current WeakReference object.
(Inherited from WeakReference)
Obsolete.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryInvoke Tries to invoke the event handler associated with this weak reference object.
TryInvokeInternal Tries to invoke the delegate associated with this weak reference object.
(Inherited from WeakDelegateBaseT)

See Also