How do I name variables dynamically in C#? -


is there way dynamically name variables?

what need take list of variable names input file , create variables names. possible?

something like:

variable <dynamic name of variable here> = new variable(input); 

assume have variable class taken care of, , name of variable contain in string called strline.

use dictionary<string, variable>.

e.g.

var vartable = new dictionary<string, variable>(); vartable[strline] = new variable(input); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -