I am hoping to create a dictionary like this:
Dictionary<string, Variable> dict = new Dictionary<string, Variable>
In this thread How do I name variables dynamically in C#? the following code example was voted up and accepted as the answer to the question:
var vartable = new Dictionary<string, Variable>();
vartable[strLine] = new Variable(input);
However, when I try to do the same thing I get this error Message:
The type or namespace name 'Variable' could not be found (are you missing a using directive or an assembly reference?)
I have been unable to find a namespace that fixes this. Any advice is appreciated.
Regards.