How could I go about calling a method on a static class given the class name and the method name, please?
For example:
Given System.Environment
System.Environment
System.Reflection.Assembly info = typeof(System.Environment).Assembly; Type t = info.GetType("System.Environment"); MethodInfo m = t.GetMethod("GetFolderPath"); object result = m.Invoke(null, arguments);