Is there a way to get the value of a variable just by knowing the name of it, like this:
double temp = (double)MyClass.GetValue("VariableName");
When I normally would access the variable like this
double temp = MyClass.VariableName;
See Question&Answers more detail:os