Skip to content

A helper classes to make an easy text table parsing and DTO convertion.

License

Notifications You must be signed in to change notification settings

sergeyo/TextTableParser

Repository files navigation

TextTableParser

Build status nuget

A set of classes for text files to table parsing and for a text table convertion to DTO of your type.

It has 2 main classes: the CSVParser class - to parse text csv/tsv files to Table class, and the ITableToDtoConverter interface, which can convert an object of the Table class to the collection of your Dtos.

    var table = new CSVParser(true, '\t', null).CreateFromCsv("file.tsv");

    var converter = new TableToDtoConverterFactory().GetParser<TestDto>();

    IEnumerable<TestDto> dtos = converter.Convert(table);

About

A helper classes to make an easy text table parsing and DTO convertion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published