WeakActionT Class

Provides a weak referenced Action delegate.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
public class WeakAction<T> : NullableWeakReference
Inheritance
Object    WeakReference    NullableWeakReference    WeakActionT

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Gemstone.Threading.WeakAction`1"]

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

WeakActionT 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