Array of 2-D array C#? -


can define array of 2d array in c# of manner? or alternate approach obtain similar dataset?

double[][,] testarray = new double[a][b,c]; 

note: 3 indices - a,b , c obtained in runtime.

thanks

you can it, have initialize each 2d array separately :

double[][,] testarray = new double[a][,]; for(int = 0; < a; i++) {     testarray[i] = new double[b, c]; } 

another way declare 3d array:

double[,,] testarray3d = new double[a, b, c]; 

that is, can make change if every 2d array wanted in beginning have same dimensions


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -