Пример #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_isDisposed)
     {
         return;
     }
     _isDisposed = true;
     if (disposing)
     {
         try { HeadWriter.Close(); }
         finally
         {
             try { BodyWriter.Close(); }
             finally
             {
                 try { _headStream.Dispose(); }
                 finally{ _bodyStream.Dispose(); }
             }
         }
     }
 }