I'd like to make a comma seperated value string with Linq's Aggregate function. Anyone know how to do this?
Given an array of strings like this:
var authors = new string[] {"author 1", "author 2", "author 3"};
How do I get a single string like this author 1, author 2, author 3?
I'm thinking something like authors.Aggregate(author => author + ",")
might be able to do this but not sure.
Ideas?