CSharp examples for System:Array Dimension
get Row from two dimensional array
using System.Text; using System.Linq; using System.Collections.Generic; using System;//from ww w . ja va 2 s. co m public class Main{ public static int[] getRow(int[,] array, int index) { int length = array.GetLength(0); int[] slice = new int[length]; for (int i = 0; i < length; i++) { slice[i] = array[index, i]; } return slice; } }