📅  最后修改于: 2022-03-11 14:48:59.185000             🧑  作者: Mango
var values = new List { 2, 9, 1, 3 };
Console.WriteLine(values.Max()); // Output: 9
var otherValues = new List { 2, 9, 1, 3, null };
Console.WriteLine(otherValues.Max()); // Output: 9