📅  最后修改于: 2022-03-11 14:48:50.194000             🧑  作者: Mango
string[] words = { "one", "two", "three" };
var res = words.Aggregate(
"", // start with empty string to handle empty list case.
(current, next) => current + ", " + next);
Console.WriteLine(res);