I have a List
private List<string> additionalHeaderMeta = new List<string>();
and I want to output it to a csv file. All that is working find but it turns out some of the elements I am adding to additionalHeaderMeta might have commas in them sometimes which obviously messes up a csv file. How can I put quotes around each element after the element has been added?
I tried
additionalHeaderMeta.Select(i => "\"" + i + "\"");
But no luck there.