Class CircularReferenceTracking
Object to track circular references in nested types. At each level of nesting, make a call to Track to retrieve Tracker, a tracking object implementing the IDisposable interface. Dispose of this tracker when leaving the context of the tracked object.
public class CircularReferenceTracking
- Inheritance
-
CircularReferenceTracking
- Inherited Members
Constructors
CircularReferenceTracking()
public CircularReferenceTracking()
Methods
Track(object)
Adds the current target to a reference list and returns a tracker. The tracker removes the target from the reference list when the tracker is disposed.
public IDisposable Track(object target)
Parameters
target
object