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
Just
Type.GetType(typeName).GetMethod(methodName).Invoke(null, arguments);
where typeName is the name of the type as a string, methodName is the name of the method as a string, and arguments is an array of objects containing the arguments to call the method with.
typeName
methodName
arguments