摘要:
//调用的方法string action = context.Request.Params["action"];Assembly assembly = Assembly.GetExecutingAssembly();Type type1 = typeof(className);MethodInfo method = type1.GetMethod(action);object obj = Activator.CreateInstance(type1); //参数object[] nums = { context };method.Invoke(obj, nums); 阅读全文