Dispose() public méthode

public Dispose ( ) : void
Résultat void
Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_buffer != null)
         {
             _buffer.Dispose();
             _buffer = null;
         }
         if (!_leaveOpen)
         {
             _baseStream.Dispose();
         }
     }
 }
Exemple #2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_buffer != null)
         {
             _buffer.Dispose();
             _buffer = null;
         }
         if (CloseBaseStream)
         {
             _baseStream.Flush();
             _baseStream.Dispose();
         }
     }
 }