B
Bram
Hi,
While staying very humble, I might have found a (rather small) bug in the
framework (in one day).
I'm using an older version of Visual C#.NET (7.0.9466) with Framework 1.0
(1.0.3705).
Things might have been fixed. So people with the latest version know what
to do.
Just declare a jagged array like this:
int a[][,] = new int[5][,]; a single-dimensional array of two-dimensional
arrays of ints.
Now get the type of 'a' and get its full name:
a.GetType().FullName
It will return "Int32[,][]"
That is, a 2-dim array of 1-dim array of ints, clearly not the same.
Is this a (small) error if it hasn't been fixed yet, or am I missing
something ?
Greetings,
Bram.
While staying very humble, I might have found a (rather small) bug in the
framework (in one day).
I'm using an older version of Visual C#.NET (7.0.9466) with Framework 1.0
(1.0.3705).
Things might have been fixed. So people with the latest version know what
to do.
Just declare a jagged array like this:
int a[][,] = new int[5][,]; a single-dimensional array of two-dimensional
arrays of ints.
Now get the type of 'a' and get its full name:
a.GetType().FullName
It will return "Int32[,][]"
That is, a 2-dim array of 1-dim array of ints, clearly not the same.
Is this a (small) error if it hasn't been fixed yet, or am I missing
something ?
Greetings,
Bram.