You could simply have a
Dictionary<string, Class>
and access the Class' values by using the key.
For example:
Dictionary<string, MyClass> dictionary = new Dictionary<string, MyClass>();
MyClass instance = new MyClass();
dictionary.Add("MyString", instance);
dictionary["MyString"].Value = "SomeValue"
So it is possible to directly access the
Properties
and
Methods
of your
Class
from the
Dictionary
when you specify its key.