title: NLog: Using WithHeader property in MemoryTarget with CsvLayout
body: <p>I'm using c# + NLog and try to write to a <strong>MemoryTarget</strong>. I have the folloowing config:</p>
  
  <pre><code>        MemoryTarget = new MemoryTarget();
  
          CsvLayout csvLayout = new CsvLayout() { Delimiter = CsvColumnDelimiterMode.Comma, WithHeader = true };
  
          csvLayout.Columns.Add(new CsvColumn() { Name = "Name", Layout = "${event-context:item=Name}" });
          csvLayout.Columns.Add(new CsvColumn() { Name = "AuditTimeStamp", Layout = "${event-context:item=AuditTimeStamp}" });
  
          MemoryTarget.Layout = csvLayout;
  </code></pre>
  
  <p>(MemoryTarget is of course a NLog.MemoryTarget property)</p>
  
  <p>So when I log stuff I can access the MemoryTarget via </p>
  
  <pre><code>MemoryTarget.Logs
  </code></pre>
  
  <p><strong>What I don't get:</strong> also I have configured the <strong>WithHeader</strong> property in my CsvLayout I don't see a header in my MemoryTarget.Logs. I'd expect <strong>Name, AuditStamp</strong> in MemoryTarget.Logs[0] but it starts with the logged content right away.</p>
  
  <p><strong>Can anybody tell my why the header is not part of the MemoryTarget.Logs list?</strong></p>