65.9K
CodeProject is changing. Read more.
Home

String concatenation using LINQ to create a CSV/PSV string

starIconstarIconstarIconstarIconstarIcon

5.00/5 (2 votes)

Jun 28, 2011

CPOL
viewsIcon

20983

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...