// Used by Janitor.Fody private void DisposeManaged() { CellsCollection.Clear(); ColumnsCollection.Clear(); RowsCollection.Clear(); MergedRanges.RemoveAll(); }
public void Dispose() { CellsCollection.Clear(); ColumnsCollection.Clear(); RowsCollection.Clear(); MergedRanges.RemoveAll(); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (brush != null) { brush.Dispose(); brush = null; } if (bitMap != null) { bitMap.Dispose(); bitMap = null; } if (cells != null) { cells.Clear(); cells = null; } } }