//cmd:方法名,sb:类的实例 sb.GetType().GetMethod(cmd).Invoke(sb, null); 转载于:https://www.cnblogs.com/swtool/p/4972144.html