protected override void Dispose(bool disposing) { try { // Explicitly flush the changes. The OS will do this for us anyway, but not until after the // MemoryMappedFile object itself is closed. if (disposing && _view != null && !_view.IsClosed) { Flush(); } } finally { try { if (_view != null) { _view.Dispose(); } } finally { base.Dispose(disposing); } } }
private void Dispose(bool disposeManagedResources) { if (_view != null) { _view.Dispose(); } _view = null; }
protected override void Dispose(bool disposing) { try { if (disposing && m_view != null && !m_view.IsClosed) { Flush(); } } finally { try { if (m_view != null) { m_view.Dispose(); } } finally { base.Dispose(disposing); } } }
protected override void Dispose(bool disposing) { try { if (disposing && !_view.IsClosed) { Flush(); } } finally { try { _view.Dispose(); } finally { base.Dispose(disposing); } } }