So say I have a string called fun. Its text is “myFun”. I want to run a function called myFun:
private void myFun()
{
//stuff
}
Is there a way to do this so I can run it based on the text of the string? Maybe like this:
myFun + ();
Clearly that won’t work, but is there something that will?
Given I have this class:
I can call this code:
That does what you want, I think.