01 2010 档案

摘要:今天看David Wynne写的一篇如果在MVVM中使用MEF进行扩展的文章,总的来说例子写的很好,可是有一个很命的地方,View是硬编码(hardcoded)到Main window中的,我就借花献佛,把它的例子稍稍改一下,以使它真正的好扩展。基本上改动不大,直接贴代码吧App.csCode highlighting produced by Actipro CodeHighlighter (fr... 阅读全文
posted @ 2010-01-22 16:46 芭蕉 阅读(844) 评论(0) 推荐(0) 编辑
摘要:今天看一C#开源工程的源代码觉得很不习惯,因为作者是使用C++ coding style组织代码的, VS只有自动格式单个文件代码的功能(Edit -> Advanced -> Format Document), 没有自动格式整个工程的选项,没办法,只能自己动手写个宏了。首先打开Marcos Explorer ( Tools -> Marcors -> Macro Expl... 阅读全文
posted @ 2010-01-08 16:12 芭蕉 阅读(1583) 评论(1) 推荐(0) 编辑
摘要:The following article is mainly from Prism documentation, it's just a review of IoC.Having class depends on services or components whose concrete type is specified at the design time introduced severa... 阅读全文
posted @ 2010-01-07 13:10 芭蕉 阅读(238) 评论(0) 推荐(0) 编辑
摘要:"when I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck" -- James Whitcomb RileyIt's really easy to implement duck typing in C# 4.0 since it int... 阅读全文
posted @ 2010-01-05 17:00 芭蕉 阅读(548) 评论(0) 推荐(0) 编辑
摘要:Castle Dynamic Proxy is a library forgenerating lightweitgh .NET Proxy on the fly at run time. it worked as generating a subclassof the given class and overried the virtual method at the run time.   L... 阅读全文
posted @ 2010-01-04 16:19 芭蕉 阅读(466) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示