Inside the CsvWriter class, CsvWriter is a label named WriteExcelSeparator() that should do this.
Depending on how you use the library, you may even:
csv.Configuration.Delimiter = ","; csv.Configuration.HasExcelSeparator = true;
If you use WriteRecords , use the second method, and if you use WriteHeader / WriteRecord , use the first.
csv.WriteExcelSeparator(); csv.WriteHeader<Simple>(); csv.WriteRecord( record );
source share