我有List<int>几个元素.我知道如果我用它迭代它我可以得到所有的值foreach,但我只想要列表中的最大int值.
List<int>
foreach
var l = new List<int>() { 1, 3, 2 };
c#
c# ×1