Use a String Variable to Dynamically Invoke a Method

I’m trying to use a string variable to assign which method to call which will then return a Integer value. I can assign the variable using the following simplified example:

int IncomingValue = some.other.method();
int TargetValue = 0;

Update(){
    TargetValue = IncomingValue;
}

This returns an updating value based on the result of some.other.method(). This works from a functional standpoint, but what I want to do is assign a string in place of some.other.method() so that I can dynamically assign which method to call in Update(). As in the following example:

string IncomingValue = "some.other.method()";
int TargetValue = 0;

Update(){
TargetValue = IncomingValue;
}

I have found a number of articles referring to the use of Reflection or Delegates, but I can’t get any of the examples I’ve found to work. Basically what I need is some way of Invoking(IncomingValue) and returning the result to TargetValue.

Any suggestions?

There is no need for reflection. You want to use delegates to define custom methods.

Your variable will be the type of your delegate instead of string.