B
bg_ie
Hi,
I have my own class and I'd like to save objects of this class in a
dictionary. In python this works something along the lines of:
a = MyObject();
b = MyObject();
c = MyObject();
myObjectDict = {}
myObjectDict['a'] = a
myObjectDict['b'] = b
myObjectDict['c'] = c
How do I do this in C#?
Thanks,
Barry
I have my own class and I'd like to save objects of this class in a
dictionary. In python this works something along the lines of:
a = MyObject();
b = MyObject();
c = MyObject();
myObjectDict = {}
myObjectDict['a'] = a
myObjectDict['b'] = b
myObjectDict['c'] = c
How do I do this in C#?
Thanks,
Barry