//dll所在路径
string path = "d:/a.dll";
//获取dll
Assembly asm = Assembly.LoadFile(path);
//获取类型
Type type = asm.GetType("包的命名空间.类名");
//获取方法
MethodInfo methed = type.GetMethod("方法名");
//创建对象的实例
object instance = Activator.CreateInstance(type);
//执行方法
var result = methed.Invoke(instance, new object[] {参数1,参数2});