What this does here is grabs all the methods from my MethodsClass and finds the firstordefault 'match' by checking of the method name is equal to the methodname param as a string value for the void invokeMethod and if the method is static as boolean. From here if it's found something of that nature, then we invoke it with the arguments specified as object from the args param i've given to the main method.
To use this, create a class, i've named mine "MethodsClass", like so:
public class MethodsClass
public static void MsgBox(string display, string title)
Give it a few methods, and be sure to have them static. Now we can use something like the MsgBox method i've provided here: