Пример #1
0
 public void Free()
 {
     if (!_disposed)
     {
         _cache.OnFree(this);
     }
 }
Пример #2
0
 public void Free()
 {
     if (Interlocked.Decrement(ref _refCount) <= 0 && !_disposed)
     {
         _cache.OnFree(this);
     }
 }