Represents a weak reference, which references an object while still allowing that object to be garbage collected.
The following tables list the members exposed by the WeakReference type.
|IsAlive||Gets an indication whether the object referenced by the current WeakReference object has been garbage collected.|
|Target||Gets or sets the object (the target) referenced by the current WeakReference object.|
|TrackResurrection||Gets an indication whether the object referenced by the current WeakReference object is tracked after it is finalized.|
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetObjectData||Populates a SerializationInfo object with all the data needed to serialize the current WeakReference object.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ToString||Returns a String that represents the current Object. (Inherited from Object.)|