Beispiel #1
0
        public static List <List <string> > ParseAsListAsync(StreamReader csv, CsvOption option)
        {
            Span <char> buf    = stackalloc char[256];
            var         parser = new ParserIntermediate(buf, option.Delimiter, option.EOLType);

            return(parser.Parse(csv));
        }
Beispiel #2
0
 public static List <List <string> > ParseAsListAsync(Stream csv, CsvOption option)
 {
     using var reader = new StreamReader(csv, option.Encoding);
     return(ParseAsListAsync(reader, option));
 }