protected virtual void Dispose(bool disposing) { if (disposing) { if (m_writer != null) { m_writer.Flush(); m_writer.Dispose(); } } } #endregion