//反射执行方法 public static object ExecuteMethod(ConType conType, string functionName, object[] obj) { var className = DBConfig.GetClassName(conType); //获取程序集 所有类型 var exeNames = Application.ExecutablePath.Replace(Application.StartupPath, "").Replace(@"\", ""); var ass = Assembly.LoadFrom(exeNames); var t = ass.GetType(className); return(ExecuteMethod(t, functionName, obj)); }