To what benefit does that offer?
You could make an empty/blank varriable if you wanted.
Sometimes creating variables dinamically is the only solution for certain problems.
The new variable (created in run-time) could have the name specified by another source for example.
I've already used this in PHP.. but I dont know if it works in vb.net. In php, as I said, you use the $$ symbol to specify the future identificator.
Why do you need the name to change?
I really don't see what that offers.
I mean you could create a Control object.
Then assign the Name property of it and stick spare data in the Tag property.
Or better yet create a Dictionary or some sort of name/value pairing.
That still sounds similar to a dictionary.
And as far as just variables, it still doesn't seem beneficial, more of an addional complexity that makes code harder to read.
Now, being able to refer to classes by a string (Reflection), seems rather usefull.
But yeah just make a dictionary?
myd.add("foo"," bar");
Comment