We need the writer but we also need to know whether we should write a header to it or not.
Пример #1
0
 /// <summary>
 /// Returns the writer for closing (or not, if we were configured with it).
 /// </summary>
 /// <param name="info">The WriterInfo obtained from a GetWriter call.</param>
 protected internal void DoneWithWriter(WriterInfo info)
 {
     // Close it unless we were configured with it.
     if (_connDesc.Type != CsvConnectionType.Writer)
     {
         info.Writer.Close();
     }
 }