Unregister Instance in Unity container

时光怂恿深爱的人放手 提交于 2019-12-23 09:33:25

问题


How can i unregister instance in unity container.

I sure that it possible, but can't find solution in manual docs


回答1:


There is no unregister. You can register a new instance on top of an existing one, and it'll replace the previous one with the newly registered instance.



来源:https://stackoverflow.com/questions/5992275/unregister-instance-in-unity-container

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!