Given the two following method definitions:
public int SumClass(int a, int b)
{
return a + b;
}
public int MultClass(int a, int b)
{
return a * b;
}
I would like to be able to call either of the methods using the name of the method as a string
public int Process(string className, int a, int b)
{
// className="SumClass" or className="MultClass"
return className(a,b);
}