1.引用命名空间 using System.Reflection;
2.Type t = Type.GetType("Class"); 获取类
3.MethodInfo Method = t.GetMethod(MethodName); 获取方法 方法名为MethodName string类型
4.Method.Invoke(this,obj); 调用 obj为object类型数组,是调用方法的参数
原文:https://www.cnblogs.com/nimayax/p/10592912.html