I have a field in a class with a random name like:
class Foo { public string a2de = \"e2\" }
I have the name of this field in another v
You can potentially do it with reflection (e.g. Type.GetField etc) - but that should generally be a last resort.
Type.GetField
Have you considered using a Dictionary and using the "variable name" as the key instead?
Dictionary