How can I get a dynamic multidimensional string array in c#? -


i'm trying make dynamic multidimensional list. without success.

i want have "key" dynamic "values".

for example:

i want add list:

key: "abc", value: (10.0f, 10.0f, 20.0f, 90.0f)  key: "mvg", value: (35.0f, 35.0f, 50.0f, 0.0f)  key: "abc", value: (200.0f, 500.0f, 70.0f, 0.0f) 

etc.

look @ "abc". don't want create new "abc" key. values should added "abc" key.

like this:

"abc" -> 10.0f, 10.0f, 20.0f, 90.0f -> 200.0f, 500.0f, 70.0f, 0.0f

"mvg" -> 35.0f, 35.0f, 50.0f, 0.0f

my list code looks this:

list<string[,,] > mainlist = new list<string[,,,]>();  

it's not working. why?

this cant work:

list<string[,,] > mainlist = new list<string[,,,]>(); 

,, , ,,,

the types don´t match

list<string[, , ,]> xxx = new list<string[, , ,]>(); 

is ok.

but search jagged array:

list<string[][][]> yyy = new list<string[][][]>(); 

good luck keeping dimensions ...


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -