Array of Arrays in C#
Posted
by Betamoo
on Stack Overflow
See other posts from Stack Overflow
or by Betamoo
Published on 2010-04-30T21:25:40Z
Indexed on
2010/04/30
21:27 UTC
Read the original article
Hit count: 387
- I need to know how to initialize array of arrays in C#..
I know that there exist multidimensional array, but I think I do not need that in my case! I tried this code.. but could not know how to initialize with initializer list..
double[][] a=new double[2][];// ={{1,2},{3,4}};
Thank you
PS: If you wonder why I use it: I need data structure that when I call obj[0] it returns an array.. I know it is strange..
Thanks
© Stack Overflow or respective owner