Exemple #1
0
 private void CloseFileHandle()
 {
     if (_fileHandle != null && !_fileHandle.IsInvalid)
     {
         _fileHandle.Close();
     }
 }
Exemple #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_fileHandle != null && !_fileHandle.IsInvalid)
         {
             _fileHandle.Close();
         }
     }
 }