protected virtual void Dispose(bool disposing) { if (this.disposedValue != true) { if (disposing) { // Free unmanaged resources when explicitly called. } } this.disposedValue = true; }