摘要: Unity是微软模式与实践团队开发的一个轻量级、可扩展的依赖注入容器。官方主页是:http://www.codeplex.com/unity,最新版本是1.2,包括在Microsoft Enterprise Library中。 使用实例: 为了接下来的使用,准备接口和类:publicinterfaceILogger{voidWrite(stringmessage);}publicclassTextFileLogger:ILogger{publicvoidWrite(stringmessage){Console.WriteLine("WritedLogToFile:\t"+m 阅读全文
posted @ 2011-04-21 17:39 技术冬 阅读(543) 评论(0) 推荐(0) 编辑