Пример #1
0
 // 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();
 }
Пример #3
0
 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;
         }
     }
 }