Exemplo n.º 1
0
        public void Clear()
        {
            _reusableBitmaps.Clear();

            // Force immediate Garbage collection. Please note that is resource intensive.
            GC.Collect();
            GC.WaitForPendingFinalizers();
            GC.WaitForPendingFinalizers();
            GC.Collect();
        }
Exemplo n.º 2
0
 public void Clear()
 {
     _reusableBitmaps.Clear();
     GC.Collect();
 }