随笔分类 - IOC
摘要:看了很多牛人关于Unity的文章后,深有感触下面简单介绍下UnityContainer 怎么注册和生成具体类的对象假设我们一个命名空间为UnityContainerText的项目中拥有一个接口和实现该接口的类Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->namespace UnityContainerText{ publicinterface ILogger { void Writer(); }}Code high...
阅读全文