public static DelimitedParser Create( DelimitedParserSettings settings, Stream stream) { var reader = new CharReader(stream); return(new DelimitedParser(settings, reader)); }
private DelimitedParser( DelimitedParserSettings settings, CharReader reader) { this.header = settings.DelimitedHeader; this.reader = reader; this.delimiter = settings.Delimiter; this.row = new string[header.Count]; }
private DelimitedParserSettings GetDelimitedParserSettings(char delimiter) { var factory = new CsvSerializerHeaderFactory(this.type); var settings = new DelimitedParserSettings { DelimitedHeader = new DelimitedHeader(factory.GetDelimitedColumns()), Delimiter = delimiter, }; return(settings); }