do性。交dvd好看的小说韩国伦。理电影色网址mef

好看的韩国电影_最新韩国电影推荐_韩国电影排行榜【2345电影大全】
猜您感兴趣
您已选择:
共有2013部电影
主演:Goo Ja-Hyeong&&&Lee Hyung Suk&&
主演:&So-yeon Jang&&
主演:&Woong-in Jeong&&
主演:Seul-ki Hang&&&
主演:朴顺爱&&&
主演:&阿曼达·布朗&&
主演:&Jeon Sin-hwan&&
主演:金惠秀 &&&
主演:Yoon Seol-hee&&&Kim Min-hyeok&&
主演:&马蒂娜·古斯曼&&
主演:艾琳·伍兹&&&Eleanor&&设计与架构(31)
1.&&&&Create one interface project ,named IMEFTestCommon
Add interface code
public interface IPrintf
void Print();
2.&&&&Create one implement project,named MEFImplement
position.dll
Add 2 classes, one is:
[Export(typeof(IPrintf))]
public class PrintPlus : IPrintf
public void Print()
Console.WriteLine(&+++++&);
Another one :
public class PrintStar : IPrintf
public void Print()
Console.WriteLine(&****&);
3.&&&&Create one Console ApplicationProject , named MEFTest
Addone Class MEFHelper &:
public class MefHelper
[Import(typeof(IPrintf))]
private IPrintf _
public void LoadAssembly()
var aggregateCatalog = new AggregateCatalog();
var directoryName =Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
if (directoryName != null)
var directoryPath = “E:\MEFTest\ExportComponents”;
var directoryCatalog= new DirectoryCatalog(directoryPath, &*.dll&);
aggregateCatalog.Catalogs.Add(directoryCatalog);
var container = new CompositionContainer(aggregateCatalog);
poseParts(this);
public void Load2()
var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
var container = new CompositionContainer(catalog);
poseParts(this,new PrintStar(),new PrintPlus());
public void Execute()
_print.Print();
TheProjects :
In Program , Add Code :
private static MefHelper _mefH
static void Main(string[] args)
_mefHelper = new MefHelper();
_mefHelper.LoadAssembly();
_mefHelper.Execute();
Console.Read();
finished .
When you change the Export class , can change the behavior dynamic.
Now the export class is :
Then the result is like this :
Then I change the export class to another one :
Then the result islike this :
1. &two load assembly method must be executed before invoke the interface .
The first one is setting the directory (MEF will always find the*.dll under the bin folder ,if it find the match one ,will execute ,then
find the folders you passed in),
&second one is pass the objects to compose .normally , first one should be the class object that include the interface member(in this example is MEFHelper.cs) , and have [import]
attribute ,others can be the classes that implement the interface and have [export] attribute accordingly (PrintStar.cs , PrintPlus.cs).
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:962536次
积分:18379
积分:18379
排名:第357名
原创:798篇
转载:88篇
评论:162条
(7)(8)(8)(10)(9)(8)(4)(10)(9)(9)(5)(6)(44)(52)(55)(36)(19)(14)(16)(10)(13)(9)(7)(8)(6)(11)(18)(11)(6)(8)(19)(11)(19)(18)(5)(10)(13)(9)(9)(12)(16)(12)(6)(7)(6)(6)(14)(5)(5)(13)(3)(2)(5)(17)(22)(30)(34)(12)(11)(4)(9)(18)(7)(27)(23)(5)(2)(9)(1)114网址导航君,已阅读到文档的结尾了呢~~
互联网上链接的合法性研究 _10105——所有资料文档均为本人悉心收集,全部是文档中的精品,绝对值得下载收藏,没有支付宝或网银的朋友可以用手机进行充值,购买文档,可按网站提示进行操作,祝您愉快。
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
互联网上链接的合法性研究 _10105
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口

我要回帖

更多关于 好看的小说 的文章

 

随机推荐