In This Article

DebuggerIndentScope Class

A scope that will track indent level by incrementing when it is created and decrementing when it is disposed.

public class DebuggerIndentScope : DisposableObjectBase, IDisposable
Inheritance:
object DisposableObjectBase object
Implements:
IDisposable

Remarks

Return an instance of this object from BeginScope() to indent all messages that are part of the scope and automatically restore the indent level when exiting the scope.

Constructors

DebuggerIndentScope()

Initializes an instance of the class that will indent output until it is disposed.

public DebuggerIndentScope()

Methods

Dispose(bool)

Releases the unmanaged resources used by the object and optionally releases the managed resources.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

This method is called by the public Dispose() method and the Finalize method. Dispose invokes this method with the disposing parameter set to true. Finalize invokes this method with disposing set to false.

Inherited Members

Extension Methods