Geeks With Blogs

News hi and welcome my name is edo van vliet, i'm a freelance microsoft developer and overall geek (and proud of it :)
readme.txt a geek. now armed with a blog.
just posted this here as a reminder to myself or anyone else looking for a quick way to create a comma-seperated string from a list of things.

public static string ListToCsv<T>(List<T> list)
CommaDelimitedStringCollection commaStr = new CommaDelimitedStringCollection();
list.ForEach(delegate(T item)
       return commaStr.ToString();
Posted on Monday, December 15, 2008 4:54 PM C# | Back to top

Comments on this post: commadelimitedstringcollection makes nice csv

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © edoode | Powered by: