I\'m using CsvHelper. To write to a .csv file, I need a header based off of a class.
.csv
I write the header manually and it works, but I need to be done aut
I believe this exception is from the CsvReader and not the CsvWriter. Default CsvConfiguration expects a header and uses AutoMap to generate a PropertyName_to_Index mapping.
From the documentation you may need to define a map see mapping