Initialize int [] [,] in C #

How do I initialize this:

public const int[][,] Map = ...

I would like to do something like this:

public const int[][,] Map = {
    { // Map 1
        {1, 1, 1, 1},
        {1, 1, 1, 1},
        {1, 1, 1, 1},
        {1, 1, 1, 1},
    },
    { // Map 2
        {1, 1, 1, 1},
        {1, 0, 0, 1},
        {1, 0, 0, 1},
        {1, 1, 1, 1},
    },
    // etc.
};

I do not want to create int[,,] Map, because somewhere else I want:

loader.Load(Map[map_numer]); // Load method recieve an int[,]
+3
source share
1 answer
int[][,] a = new int[][,]
{
    new int[,]
    {
        {1, 1, 1, 1},
        {1, 1, 1, 1},
        {1, 1, 1, 1},
        {1, 1, 1, 1},

    },
    new int[,]
    {
        {1, 1, 1, 1},
        {1, 0, 0, 1},
        {1, 0, 0, 1},
        {1, 1, 1, 1},
    }
};
+9
source

Source: https://habr.com/ru/post/1720359/