Express one dimension of 2d array as new array

Posted by user208080 on Stack Overflow See other posts from Stack Overflow or by user208080
Published on 2010-06-07T17:49:56Z Indexed on 2010/06/07 18:02 UTC
Read the original article Hit count: 147

Filed under:
|

I have a 2d array a[3,3]. How can I express one dimension as a new array and pass it to some function?

int[,] a = new int[3,3];

a[0,0] = 1;

...

string b = concatenate(a[0]);     // where concatenate is a function
                                  // take a one dimension array as param

Also, can I create a 65000x65000 array with C#? I got some "out of memory" error.

© Stack Overflow or respective owner

Related posts about c#

Related posts about beginner