WeakDelegateBaseT Class

Represents a base class for weak delegate wrappers with a specified delegate type.

Definition

Namespace: SnapDB.Threading
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public abstract class WeakDelegateBase<T> : WeakReference
where T : class
Inheritance
Object    WeakReference    WeakDelegateBaseT
Derived

Type Parameters

T
The type constraint for the delegate.

Constructors

WeakDelegateBaseT Initializes a new instance of the WeakDelegateBaseT class with the specified delegate 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.
(Overrides ObjectEquals(Object))
Equals(WeakDelegateBaseT) Determines whether the current WeakDelegateBaseT instance is equal to another WeakDelegateBaseT instance.
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)
TryInvokeInternal Tries to invoke the delegate associated with this weak reference object.

See Also