Exemplo n.º 1
0
 /// <summary>
 /// Actually disposes the current object.
 /// </summary>
 /// <param name="disposing">
 /// Indicates whether the method was invoked from the <see cref="IDisposable.Dispose"/>
 /// implementation or from the finalizer
 /// </param>
 private void Dispose(bool disposing)
 {
     if (disposing && _outputFile != null)
     {
         if (_buffer.Count > 0)
         {
             WriteRecord(_sum.Sum(_buffer));
         }
         _outputFile.Dispose();
     }
 }