コード例 #1
0
 private CsvDataReader(CsvStreamReader reader, bool ownReader, IFormatProvider formatProvider = null)
 {
     _formatProvider  = formatProvider ?? System.Globalization.CultureInfo.CurrentCulture;
     _csvStreamReader = reader;
     _ownReader       = ownReader;
     _headers         = reader.Headers.ToArray();
 }
コード例 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing && _csvStreamReader != null && _ownReader)
     {
         _csvStreamReader.Dispose();
         _csvStreamReader = null;
     }
 }
コード例 #3
0
 public CsvDataReader(CsvStreamReader reader, IFormatProvider formatProvider = null)
     : this(reader, false, formatProvider)
 {
 }