📅  最后修改于: 2022-03-11 14:48:38.196000             🧑  作者: Mango
return collection.Any() ? collection.Max(c => c.Value) : 0;
// Or replace 0 with null or whatever other default
// value you'd like to return.