hint: 宿主和插件都引用协议程序集
0--------------------------------------------
从mef的角度来看,根本不需要接口协议, 协议可以是简单的字符串。
插件部分
[Export("cccd")]
public class Foo{
public string Bar(){
return "abc";
}
}
宿主部分
[Import("cccd")]
public dynamic Foo{get;set;}
调用
var result = Foo.Bar(); // bar 没有智能提示