Пример #1
0
 public void Dispose()
 {
     try
     {
         this.Clear();
         //GC.SuppressFinalize(values);
         GC.SuppressFinalize(this);
         GarbageManagement.CollectGarbage();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 public virtual void Dispose()
 {
     values.Clear();
     try
     {
         //values = null;
         GC.SuppressFinalize(values);
         GC.SuppressFinalize(this);
         GarbageManagement.CollectGarbage();
     }
     catch (Exception ex)
     {
         //Singleton<LogMan>.Inst.doLog(ex);
     }
 }