예제 #1
0
 public IEnumerable <IEnumerable <string> > Parse()
 {
     while (!this.reader.EndOfStream)
     {
         var parser = new DelimitedRecordParser(this.reader, this.delimiter);
         yield return(parser.Parse());
     }
 }
예제 #2
0
        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);
            }
        }