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