String ClassName = "MyClass"
String MethodName = "MyMethod"
I would like to achieve:
var class = new MyClass;
MyClass.MyMethod();
I saw some e.g. with reflection , but they only show , either having a method name as string or class name as string, any help appreciated.
Something similar, probably with more checks:
Note that if you have parameters to pass then you'll need to change the
method.Invoke
to