예제 #1
0
 /// <summary>
 /// Sets the parser to use to parse the input.
 /// </summary>
 /// <returns>The CSVReaderBuilder with the CSVParser set.</returns>
 /// <param name="csvParser">Ther parser to use to parse the input.</param>
 public CSVReaderBuilder WithCSVParser(CSVParser csvParser)
 {
     this.csvParser = csvParser;
     return(this);
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleCSV.CSVReader"/> class with supplied CSVParser.
 /// </summary>
 /// <param name="reader">The reader to an underlying CSV source.</param>
 /// <param name="skipLines">The line number to skip for start reading.</param>
 /// <param name="parser">The parser to use to parse input.</param>
 public CSVReader(TextReader reader, int skipLines, CSVParser parser)
 {
     this.reader = reader;
     SkipLines   = skipLines;
     Parser      = parser;
 }