问题
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