WeakReference

WeakReference


Provides a reference to an object, but does not keep that object alive.


Implements:

IObject 

Public:

Properties:

NameDescription
 IsAlive (get) Returns the status of the weakly referenced object.  
 IsChild (get) Returns if this isnstance of WeakReference is a child.  
 Target (get) Returns a strong reference to the object a weak reference is being kept to.  
 Target (set) Sets the target object to keep a weak reference to.  

Methods:

NameDescription
 ClearDeadReferences Releases any dead child WeakReferences.  
 CreateChild Creates a new weak reference without allocating addition resources to maintain reference integrity.  
 Dispose Releases the reference to the Target object.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 ToString Returns a string representation of this object instance.  

Events:

NameDescription
 Disposed This event is raised when a controlling WeakReference loses reference to the underlying Target object.  

See Also

Constructors