Language

TimingLogger.Dispose Method

Definition

Overloads

Name Description
Dispose()

Dispose of the current instance. Dispose() for more information.

Dispose(Boolean)

Dispose of the current instance, stopping timing if necessary. Note that if timing is stopped here, the log will contain the default message (Stop(String))

Dispose()

Dispose of the current instance. Dispose() for more information.

public void Dispose();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit

Implements

Remarks

Calls the protected Dispose(Boolean) overload with true and suppresses finalization.

Applies to

Dispose(Boolean)

Dispose of the current instance, stopping timing if necessary. Note that if timing is stopped here, the log will contain the default message (Stop(String))

protected virtual void Dispose(bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit

Parameters

disposing
Boolean

The public Dispose() method passes true; the finalizer passes false. The base implementation does not read this value.

Remarks

On its first call, the base implementation stops any active measurement and marks the instance as disposed.

Applies to