I have a string holding a type name. I want to get the type in reflection, and call a static method. I want to keep the code simple as possible. something like this:
public class MyClass {
static int foo()
{
return 7;
};
}
var MyClassType = Type.GetType("MyClass");
// your help here!
int res = (MyClassType).foo();
Thanks!