C# Class AK.F1.Timing.Utility.DisposableBase

Defines a base for a class which implements the Disposable pattern. This class is .
Inheritance: IDisposable
Show file Open project: simoneb/ak-f1-timing

Public Methods

Method Description
DisposeOf ( IDisposable disposable ) : void

Helper method to safely dispose of the specified disposable instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes of this instance.

DisposeOfManagedResources ( ) : void

Disposes of the managed resources held by this instance. This method is guaranteed to be invoked only once when this instance is initially disposed of.

Private Methods

Method Description
CheckDisposed ( ) : void
IDisposable ( ) : void

Method Details

Dispose() protected method

Disposes of this instance.
protected Dispose ( bool disposing ) : void
disposing bool if being called explicitly, otherwise; /// to indicate being called implicitly by the GC.
return void

DisposeOf() public static method

Helper method to safely dispose of the specified disposable instance.
public static DisposeOf ( IDisposable disposable ) : void
disposable IDisposable The disposable instance. Can be .
return void

DisposeOfManagedResources() protected abstract method

Disposes of the managed resources held by this instance. This method is guaranteed to be invoked only once when this instance is initially disposed of.
protected abstract DisposeOfManagedResources ( ) : void
return void