I would like to make a comma delimited string with the Linq Aggregate function. Does anyone know how to do this?
For an array of such lines:
var authors = new string[] {"author 1", "author 2", "author 3"};
How to get one line, such as author 1, author 2, author 3 ? I think something like authors.Aggregate(author => author + ",") can do this, but not sure.
Ideas?
Paul fryer
source share