Use a Dictionary<string, Variable>
.
e.g.
var vartable = new Dictionary<string, Variable>();
vartable[strLine] = new Variable(input);
More Related Contents:
- C# – variable not setting from another class
- What’s wrong with my C# codes?
- C# – How to convert variables? (String, int, etc.) [duplicate]
- What’s the use/meaning of the @ character in variable names in C#?
- What does the @ symbol before a variable name mean in C#? [duplicate]
- Will using ‘var’ affect performance?
- Error: “Cannot modify the return value” c#
- Use a variable from another method in C#
- How to use Global Variables in C#?
- What’s the point of the var keyword? [duplicate]
- Formatting a float to 2 decimal places
- Implicit typing; why just local variables?
- .NET Integer vs Int16?
- How do you get a variable’s name as it was physically typed in its declaration? [duplicate]
- Does C# support a variable number of arguments, and how?
- Regarding local variable passing in Thread
- Variables within app.config/web.config
- C#: Getting size of a value-type variable at runtime?
- Getting variable by name in C#
- How do you pass variables from c# to javascript?
- Calling a Variable from another Class
- Should you access a variable within the same class via a Property?
- ASP.NET C# Static Variables are global?
- dynamic & object ConstructorInfo.Invoke(object[] parameters)
- XML Serialization and namespace prefixes
- ado.net Closing Connection when using “using” statement
- Unable to connect to ASP.Net Development Server issue
- Can I simply ‘read’ a file that is in use?
- Datagridview: How to set a cell in editing mode?
- How to use DI container when OwinStartup