如题,B程序集里有个方法fun(Ipram pram)在A程序集里动态加载B程序集,调用方法:
Type TYPE = AppAssembly.GetType("B程序集");
System.Reflection.MethodInfo Method = type.GetMethod("DOCHECK");
if (Method != null)
{
//调用该方法
object Obj = Activator.CreateInstance(type);
return Method.Invoke(Obj, ObjArray_Parameter);
}
但问题是IPARAM类型在B程序集里才有,哪位大虾知道这个参数怎么传.
Type TYPE = AppAssembly.GetType("B程序集");
System.Reflection.MethodInfo Method = type.GetMethod("DOCHECK");
if (Method != null)
{
//调用该方法
object Obj = Activator.CreateInstance(type);
return Method.Invoke(Obj, ObjArray_Parameter);
}
但问题是IPARAM类型在B程序集里才有,哪位大虾知道这个参数怎么传.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货