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: }
All posts in category Snippet
Create CSV From a Simple Collection.
Posted by micaleel on March 17, 2010
http://khalilmuhammad.com/2010/03/17/create-csv-from-a-simple-collection/