110,571
社区成员
发帖
与我相关
我的任务
分享
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace 插件1
{
public class Class1 : 插件开发.IShow
{
public string Show1()
{
return "大家好,我是插件1";
}
}
}
namespace 测试的命名空间
{
public class 测试的类1
{
public string Show1()
{
return "我只是个测试1";
}
}
}
System.Reflection.Assembly asm = System.Reflection.Assembly.LoadFrom("DLL的路径");
int a=1;
foreach (Module mod in asm.GetModules(true))
{
MessageBox.Show("我属于第"+a.toString()+"个模块");//asm.GetModules()后始终只有一个
a++;
}