Dispose Method
Definition
Dispose()
Releases all resources used by the Disposable object.
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the Disposable object and optionally releases the managed resources.
protected void Dispose(bool disposing)
Parameters
disposingbooltrueto release both managed and unmanaged resources;falseto release only unmanaged resources.