Dispose() public méthode

public Dispose ( ) : void
Résultat void
 protected override void Dispose(bool disposing)
 {
     if (_ist != null)
     {
         _ist.Dispose();
     }
     if (_ost != null)
     {
         _ost.Dispose();
     }
 }
Exemple #2
0
 public void Close()    //remove `override`
 {
     if (_ist != null)
     {
         //Stream.`Close` method deleted
         //_ist.Close ();
         _ist.Dispose();
     }
     if (_ost != null)
     {
         //Stream.`Close` method deleted
         //_ost.Close ();
         _ost.Dispose();
     }
 }