how to declare 2d array in c#

C#
// Two-dimensional array.
int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };int[,] matrix = new int[10,9];
Source

Also in C#: