D
deko
I trying to create a jagged array of two arrays, with the second array being
an array of two-dimensional arrays.
A graphical representation might look like this:
x y[a,b] y[a,b] y[a,b]
x y[a,b]
x y[a,b] y[a,b]
x y[a,b] y[a,b] y[a,b] y[a,b]
I can initialize a jagged array of arrays like this:
string[][] str = new string[][]
{
new string[] {"loop for strings"},
new string[] {"loop for strings"},
};
which would give me this:
x y y y
x y
x y y
x y y y y
but how do I initialize the 2-Dim array on the "y" array?
I tried this:
string[][][,] str = new string[][][,]
{
new string[] {"loop for strings"},
new string[] {{"loop for strings"},
new string[,] {{"strD-1"}, {"strD-2"}}}
};
but no luck.
how do I initialize this type of array?
Thanks in advance.
an array of two-dimensional arrays.
A graphical representation might look like this:
x y[a,b] y[a,b] y[a,b]
x y[a,b]
x y[a,b] y[a,b]
x y[a,b] y[a,b] y[a,b] y[a,b]
I can initialize a jagged array of arrays like this:
string[][] str = new string[][]
{
new string[] {"loop for strings"},
new string[] {"loop for strings"},
};
which would give me this:
x y y y
x y
x y y
x y y y y
but how do I initialize the 2-Dim array on the "y" array?
I tried this:
string[][][,] str = new string[][][,]
{
new string[] {"loop for strings"},
new string[] {{"loop for strings"},
new string[,] {{"strD-1"}, {"strD-2"}}}
};
but no luck.
how do I initialize this type of array?
Thanks in advance.