Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (IsDisposed)
     {
         return;             //skip redundant calls
     }
     if (disposing)
     {
         _safeByteCollection.Dispose();
     }
     IsDisposed = true;
 }
Пример #2
0
 protected override void DisposeManagedResources()
 {
     _safeByteCollection?.Dispose();
 }