I am new to C# I want to store some simple objects in a associative array, JS like
var part["part1"] = {id:1, name:"part 1 ", posX:100, posY:200};
var part["part2"] = {id:2, name:"part 2 ", posX:300, posY:250};
and then retrieve that easily with
name = "part2"
print(part[name].x);
I had a look at: NameValueCollection, but it looks I can store simple values there only.
I tried with Collections and structures: which looks quite big and heavy just to store some simple values.
Is there a better/quicker/simpler way?