[...]
You need to copy each sub-array individually. In Java, a
"multi-dimensional" array is really just an array of arrays.
Sigh...sorry. In the middle of a Java program, and got confused about
what newsgroup I'm in.
Anyway, C# does support true "multi-dimensional" arrays. However, it also
supports "jagged" arrays, which are arrays of arrays. So, depending on
how you created your multi-dimensional array, you might in fact have to
copy each sub-array individually as I wrote.
If you have a true multi-dimensional array, then you can use Array.Copy(),
which will treat your multi-dimensional array as one long array (which it
is really is
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
). In that case, the length you'll want to pass for the
Copy() method would be the total number of elements you want copied over
all dimensions. For example, if you have a 10x10 array, you'd pass a
length of 100 to copy all elements from one array to the other.
I apologize for the confusion.
Pete