So Im redoing one of my old browser based javascript games and recoding it in c# i really liked the layout of my code and how smooth the workflow was so I wanna keep that same pattern when I code it in c#
So I have some nested arrays that look like this
var names = {
town: "",
mayor: "",
},
wood = {
name: "wood",
amount: 0,
increment: 0,
max: 100,
storage: 0,
storageCost: {
wood: 50,
stone: 50
}
};
Ive been trying to find out what the c# equivalent is but with no luck im sure this is a thing they have in c#(cause why wouldnt they?)
SO yea Answer providing a link to maybe some documentation? or just letting me know what the equivalent is
Please do note I am not asking for you to code anything for me I just need to know the right syntax
EDIT: To be more precise I wanna be able to get a value as simple as wood.storageCost.stone and get the value 50