Mono Class Library: System.WeakReference Overview | Members

System.WeakReference Constructor

Creates a new WeakReference referencing an object, and optionally tracking the ressurection of the object.

public WeakReference (object target, bool trackResurrection)

Parameters

target
The target object.
trackResurrection
Whether to retain the reference to the object after the object's finalizer has been called but before the object has been removed from memory.

Remarks

Accessing an object post-finalization should be done with care.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0