How is a two-dimensional array directly instantiated by giving it parameters in the new?

0

In the case of being an array of a single serious dimension;

    new Vectores().ComprobarMenor(new int[] { 2, 4, 66, 6, 3, 7, 2, 7, 2, 13, 6 ,0});

But if they are two dimensions?

    
asked by Edulon 05.11.2017 в 16:39
source

1 answer

2
int[,] array = { { 1, 2, 3 }, { 4, 5, 6 } };
    
answered by 05.11.2017 / 17:00
source