Dispose() protected method

Closes this stream. Calls the TarBuffer's close() method. The underlying stream is closed by the TarBuffer.
protected Dispose ( bool disposing ) : void
disposing bool
return void
示例#1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!isDisposed)
     {
         isDisposed = true;
         if (disposing)
         {
             if (tarOut != null)
             {
                 tarOut.Flush();
                 tarOut.Dispose();
             }
             if (tarIn != null)
             {
                 tarIn.Dispose();
             }
         }
     }
 }