code你自己的IoC容器 [英] Code your own IOC Container

查看:79
本文介绍了code你自己的IoC容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在那里写了自己的IoC容器在C#中?还是绝大多数人的使用各种框架如春。什么是亲的和每一个反对的?

Has anyone out there written their own IOC Container in C#? Or do the vast majority of folks use the various frameworks such as Spring. What are the pro's and con's of each?

推荐答案

这是一个很好的锻炼; Tibial写你自己的,但最终你可能希望使用现有容器。你可以用这个启动<一个href=\"http://ayende.com/Blog/archive/2007/10/20/Building-an-IoC-container-in-15-lines-of-$c$c.aspx\">one在code的15行。

It's a good excercise to write your own but in the end you might want to use an existing container. You could start with this one in 15 lines of code.

这篇关于code你自己的IoC容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆