leave a comment »
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: }
Written by micaleel
March 17, 2010 at 11:07 AM
Posted in C#, Linq, Programming, Snippet
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Notify me of new posts via email.
Get every new post delivered to your Inbox.