110,534
社区成员
发帖
与我相关
我的任务
分享
System.Reflection.Assembly ass = null;
ass = System.Reflection.Assembly.Load(资源);
Type[] types = ass.GetTypes();
for(int i = 0; i < types.length; i++) {
if(types[i].FullName.Equals("类名")) {
System.Reflection.MethodInfo method = types[i].GetMethod("方法名");
//调用方法
method.Invoke(ass.CreateInstance(types[i].FullName), new object[] {参数})
}
}
资源获取:
工程名.Properties.Resources.资源名