Click here to Skip to main content
15,889,200 members
Articles / General Programming / String

String concatenation using LINQ to create a CSV/PSV string

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
29 Jun 2011CPOL 19.9K  
I rather like IEnumerable than IList, parameters should be as general as posible. I think it's really getting very fun up here. Here's my choice, just for strings.public static string Join(this IEnumerable parts, string separator){ if (! parts.Any()) return...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect SunHotels
Spain Spain
I Received a Bachelor's Degree in Computer Science at the Mathematics and Computer Science Faculty, University of Havana, Cuba.

I mainly work in web applications using C# and some Javascript. Some very few times do some Java.

Comments and Discussions