WeakAction Class

Provides a weak referenced Action delegate.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.128 -- Release Build+d4a9a653be1def5888b9be91bb1825c8655f3529
public class WeakAction : NullableWeakReference
Inheritance
Object    WeakReference    NullableWeakReference    WeakAction

Remarks

This class will store the information necessary so the callback object will have a weak reference to it. This information is compiled an can be quickly executed without the overhead of using reflection.

Constructors

WeakAction Creates a WeakAction.

Properties

IsAlive Gets an indication whether the object referenced by the current NullableWeakReference object has been cleared or garbage collected.
(Inherited from NullableWeakReference)
Target Gets the object (the target) referenced by the current NullableWeakReference object. Set will only accept null.
(Inherited from NullableWeakReference)
TrackResurrectionGets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized.
(Inherited from WeakReference)

Methods

Clear Clears Action callback target.
(Overrides Clear)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 Attempts to invoke the delegate to a weak reference object.

See Also