Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# max in 2d array row

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. 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #max #array #row
ADD COMMENT
Topic
Name
1+9 =