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 variable like:
string vari = "a2de"
Can I get or set the value of field a2de
by using the value of vari
?
like:
getvar(vari)
or
setvar(vari) = "e3"
See Question&Answers more detail:os