📅  最后修改于: 2022-03-11 14:48:44.411000             🧑  作者: Mango
代码示例2
int[] numbers = new int[] { 10, 30, 50, 40, 60, 20, 70, 90, 80, 100 };
int total = (from num in numbers select num).Sum();