📅  最后修改于: 2022-03-11 14:48:46.330000             🧑  作者: Mango
int[] myNumbers = {5, 1, 8, 9};
Console.WriteLine(myNumbers.Max()); // 9
Console.WriteLine(myNumbers.Min()); // 1
Console.WriteLine(myNumbers.Sum()); // 23