I have a csv data like this
Header1 | Header2 | Header3 | ... | ValueN | |
---|---|---|---|---|---|
Key1 | Value11 | Value12 | Value13 | ... | Value1N |
Key2 | Value21 | Value22 | Value23 | ... | Value2N |
Key3 | Value31 | Value32 | Value33 | ... | Value3N |
... | ... | ... | ... | ... | ... |
KeyN | ValueN1 | ValueN2 | ValueN3 | ... | ValueNN |
which have dynamic size of columns.
I want to load it to a lookup table
dictionary<string, dictionary<string, string>> lookup_table
so I can get data by
data = lookup_table[key_name][header_name]
Furthermore, I have to write back to csv if data got changed.
How should I create my class and map to read/write it?
csvhelper version = 28.0.1