c# length 2d array
int rowsOrHeight = ary.GetLength(0);
int colsOrWidth = ary.GetLength(1);
c# length 2d array
int rowsOrHeight = ary.GetLength(0);
int colsOrWidth = ary.GetLength(1);
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us