// protected methods
 /// <summary>
 /// Disposes of any resources used by the writer.
 /// </summary>
 /// <param name="disposing">True if called from Dispose.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         Close();
         if (_disposeBuffer)
         {
             _buffer.Dispose();
             _buffer = null;
         }
     }
 }
Exemple #2
0
 // protected methods
 /// <summary>
 /// Disposes of any resources used by the writer.
 /// </summary>
 /// <param name="disposing">True if called from Dispose.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         Close();
         if (_buffer != null)
         {
             if (_disposeBuffer)
             {
                 _buffer.Dispose();
             }
             _buffer = null;
         }
     }
     base.Dispose(disposing);
 }
 // protected methods
 /// <summary>
 /// Disposes of any resources used by the reader.
 /// </summary>
 /// <param name="disposing">True if called from Dispose.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         try
         {
             Close();
             if (disposeBuffer)
             {
                 buffer.Dispose();
                 buffer = null;
             }
         }
         catch { } // ignore exceptions
     }
     base.Dispose(disposing);
 }