Пример #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));
        }
Пример #2
0
 public static List <List <string> > ParseAsListAsync(Stream csv, CsvOption option)
 {
     using var reader = new StreamReader(csv, option.Encoding);
     return(ParseAsListAsync(reader, option));
 }