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: }
Advertisement
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: }
Posted by micaleel on March 17, 2010
http://khalilmuhammad.com/2010/03/17/create-csv-from-a-simple-collection/