internal override void Dispose(bool disposing) { if (disposing) { // Free managed if (_sections != null && !_sections.IsDisposed) { _sections.Dispose(); _sections = null; } if (_bookmarks != null && !_bookmarks.IsDisposed) { _bookmarks.Dispose(); _bookmarks = null; } if (_contentControls != null && !_contentControls.IsDisposed) { _contentControls.Dispose(); _contentControls = null; } } base.Dispose(true); }
internal override void Dispose(bool disposing) { if (disposing) { // Free managed if (_contentControls != null && !_contentControls.IsDisposed) { _contentControls.Dispose(); _contentControls = null; } if (_fields != null && !_fields.IsDisposed) { _fields.Dispose(); _fields = null; } if (_inlineShapes != null && !_inlineShapes.IsDisposed) { _inlineShapes.Dispose(); _inlineShapes = null; } } base.Dispose(true); }