I want the user to create a variable of type float and the variable's value will be reassessed multiple times based on a text function the user supplies. A simple example would be: Val1 = Val1 * UserVariables.Count + 5. Each time the variable named Val1 is assessed in the program (outside the user's control) it will reset its value. Some detail on the user variable below.
public class UserVariable()
{
public string Name; // Say Val1
public Type Type; // Say float
public dynamic Value; // would be determined by Type
public string Input; // the user's function
public void EvalutateValue()
{
// Value = [Run something like Visual Studio Interactive Window line command]
}
}
Thanks in advance for any suggestions