会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
螃蟹 疯牛 大雁 团队
Starting a Business Stop Worrying Keep Track Close the Door Never Say No Just Work Harder
博客园
首页
新随笔
联系
订阅
管理
2008年7月15日
依赖注入模式 Dependency Injection Pattern (C#)
摘要: 1. Constructor Injection public class Boy { private IDog smallDog; public Boy(IDog smallDog) { this.smallDog = smallDog; } } public interface ID...
阅读全文
posted @ 2008-07-15 17:19 许晓光
阅读(2382)
评论(0)
推荐(0)
公告