Mine
public text v1 · immutablevoid Execute()
{
Type TLibrary = Type.GetType("Lib.Name");
Object TObject = Activator.CreateInstance(TLibrary);
Type[] TParams = new Type[1];
TParams[0] = Type.GetType("System.String");
MethodInfo TFunction = TLibrary.GetMethod("MyFunction", TParams);
Object[] Params = new Object[1];
Params[0] = "argument";
Object RetVal = TFunction.Invoke(TObject, Parmas);
Console.WriteLine("Result of MyFunction: ", RetVal);
}