title: Manually Add Header in CsvHelper.CsvWriter
body: <p>I'm using <code>CsvHelper</code> class to write rows in <code>DataTable</code> to a csv file. The code works but I can't get it to write the headers.</p>
  
  <p>How can I add the headers manually without creating a Class Map?</p>
  
  <p><a href="http://joshclose.github.io/CsvHelper/">http://joshclose.github.io/CsvHelper/</a></p>
  
  <pre><code>DataTable dt = GetDataTableFromDB();
  
  System.IO.MemoryStream memoryStream = new System.IO.MemoryStream();
  System.IO.StreamWriter streamWriter = new System.IO.StreamWriter( memoryStream );
  CsvHelper.CsvWriter writer = new CsvHelper.CsvWriter( streamWriter );
  
  foreach ( DataColumn column in properties.Columns )
      writer.WriteHeader( column.ColumnName );    //&lt;--- How do I write to column
  
  foreach ( DataRow row in dt.Rows )
  {
      foreach ( object item in row.ItemArray )
          writer.WriteField( item.ToString() );
  
      writer.NextRecord();
  }
  </code></pre>