Create CSV From a Simple Collection.

Here is a handy snippet I normally use to create a CSV string from a simple collection of strings: 1: public string ToCsv(IEnumerable<string> collection){ 2: return string.Join(“,”, collection.ToArray()); 3: }

Follow

Get every new post delivered to your Inbox.