I've been searching for an answer to this so sorry if it's been asked before, but... I'm converting a Javascript project to C#, which I'm trying to learn as I go, but I'm not sure how to convert a large Javascript array to something readable in C#. Here's an example line from the array:
var myArray=[
"6016-SH",90,0,{door:[304,35,65],key:[60,58,8,5]},
]
In Javascript I search for that "6016-SH" string with indexOf then access the subarray (myArray[3]) then look for and access various variables, i.e. myArray[3].door[1] etc. So is there any quick way of converting this to C# without reformatting the whole thing? I'm presuming a list would be the best option?
Thanks.