通过方法名字符串调用方法

      //cmd:方法名,sb:类的实例
      sb.GetType().GetMethod(cmd).Invoke(sb, null);

原文地址:https://www.cnblogs.com/swtool/p/4972144.html