I have class Foo. Foo has a property of public string x.
I would like to instantiate Foo a few times as ONE and TWO, and add those instances to Hashtable Bar with keys 1 and 2 respectively. How do I obtain string x for the particular instance.
I've tried something to the like of: Bar[1].x, but the property x is not recognized.
What am I doing wrong?