Type masterType = this.master.GetType();//先获取模板页类型
MethodInfo mi = masterType.GetMethod("要调用的方法名");//再利用反射获取模板页中的方法
mi.Invoke(this.master,null);//执行方法

相关文章:

  • 2022-02-25
  • 2021-06-06
  • 2021-09-28
  • 2021-07-31
  • 2021-11-01
猜你喜欢
  • 2021-09-18
  • 2022-02-11
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案