Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用 DryIoc 容器。
在文档中显示了如何使用 Made 进行注册:
c.Register<Foo>(made: Made.Of(() => new Foo(Arg.Of<IDependency>())));
我非常喜欢这个,但是就我而言,编译器无法识别 Made 类。如果使用 Made 已过时,那么还有什么替代方法?
好的,我认为问题在于我使用了dryioc 1.4.1(当时的nuget默认值)。当我安装 2.0.0-rc4 版本时,问题消失了。