System.WeakReference<T> Class

Represents a typed weak reference, which references an object while still allowing that object to be reclaimed by garbage collection.

See Also: WeakReference<T> Members

Syntax

public sealed class WeakReference<T> : System.Runtime.Serialization.ISerializable
where T : class

Type Parameters

T
Documentation for this section has not yet been entered.

Remarks

A weak reference enables the garbage collector to collect an object while still allowing an application to access the object. If you need the object, you can obtain a strong reference to it and prevent it from being collected.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0