📜  c# max in 2d array row - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:54.644000             🧑  作者: Mango

代码示例1
var max = Enumerable.Range(0, PlayerStats.GetLength(1)).Max(i => PlayerStats[1, i]);
//Enumerable.Range gets a range of sequential numbers from 0 to PlayerStats.GetLength(1),
//which represent the indexes of all the items in the second array of PlayerStats.