NullableWeakReference Class

A WeakReference implementation that can have the Target object set to null. Natively, setting Target to null will throw an InvalidOperationException,

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public class NullableWeakReference : WeakReference
Inheritance
Object    WeakReference    NullableWeakReference

Constructors

NullableWeakReference Creates a NullableWeakReference

Properties

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

Methods

Clear Sets Target to null so subsequent calls to Target returns null.
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)

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also