Code your own IOC Container

前端 未结 12 930
眼角桃花
眼角桃花 2020-12-08 00:52

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 eac

12条回答
  •  醉话见心
    2020-12-08 01:32

    I created my own IoC container that makes it easier to debug the creation of the object (even when you have no access to the container code). When the object is created, when pressing Step into (F11) you see the code to create the object. Full code can be seen here.

提交回复
热议问题