/// <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); }
/// <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; }