📅  最后修改于: 2022-03-11 14:48:57.279000             🧑  作者: Mango
代码示例1
using System.Collections.Generic;
using System.Linq;
List intList = new List(){1, 2, 3, 4};
int sum = intList.Aggregate((x, y) => x + y);