// 动态调用方法
Type p = GetType();
object o = Activator.CreateInstance(p);
MethodInfo mi = p.GetMethod("方法名");
object result = (mi != null) ? mi.Invoke(o, new object[] { context }) : "";

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-11-04
  • 2021-08-02
猜你喜欢
  • 2021-12-30
  • 2021-11-03
  • 2021-09-14
  • 2021-11-19
相关资源
相似解决方案