📜  c# linq 聚合字符串生成器 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.194000             🧑  作者: Mango

代码示例1
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);