public IEnumerable <IEnumerable <string> > Parse() { while (!this.reader.EndOfStream) { var parser = new DelimitedRecordParser(this.reader, this.delimiter); yield return(parser.Parse()); } }
private IEnumerable <int> GetCountOfFields(CharReader reader, char delimiter) { int count = 0; while (!reader.EndOfStream && count++ < this.rowsToRead) { var fields = new DelimitedRecordParser(reader, delimiter).Parse().ToArray(); yield return(fields.Length); } }