CsvHelper write mapper one property to multiple columns
I'm using csvHelper (version 2.8.4) to write a class to csv. My class looks like this:
public class classA
{
public int Amount { get; set; }
public Dictionary Dict{ get; set; }
}
Is it possible to write a mapper that maps Dict property to multiple columns? using some sort of converter?
for example if the class has the values:
Amount = 15
Dict = new Dictionary
I want the resulting csv to be:
Amount,a1,b1
15,a2,b2
Thanks!