📅  最后修改于: 2022-03-11 14:49:15.952000             🧑  作者: Mango
var list = new List { 1, 2, 3, 4, 5, 6, 7, 16, 17 };
// MAX
Console.WriteLine("MAX=>" + list.Max(z => z));
// MIN
Console.WriteLine("MIN=>" + list.Min(z => z));