阅读背景:

如何使用自定义IOC容器中的构造函数参数解析实例?

来源:互联网 

I'm trying to build my own inversion of control container. Right now I store the objects with their types in a dictionary and resolve a reference when asked. But I want to make it possible to resolve a reference or a new instance. I can create a new instance with the Activator class. But, what if the constructor of the object to resolve takes 1, 2 or any parameters? I'm trying to build my own inversion of control




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: