Esempio n. 1
0
 /// <summary>
 /// Creates a parser designed to parse a CSV file.  Passing true for hasHeaderRow will result in the first row being used
 /// to map
 /// header names to column indices.  This will allow you to access fields using the header name in addition to the column
 /// index.
 /// </summary>
 public static TabularDataParser CreateForCsvFile(string filePath, bool hasHeaderRow) => CsvLineParser.CreateWithFilePath(filePath, hasHeaderRow);
Esempio n. 2
0
 /// <summary>
 /// Creates a parser designed to parse a CSV file.  Passing true for hasHeaderRow will result in the first row being used
 /// to map
 /// header names to column indices.  This will allow you to access fields using the header name in addition to the column
 /// index.
 /// </summary>
 public static TabularDataParser CreateForCsvFile(Stream stream, bool hasHeaderRow) => CsvLineParser.CreateWithStream(stream, hasHeaderRow);