Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Container.Bind<BindClass>().AsSingle();
var res1 = Container.Resolve<BindClass>();
Container.Unbind<BindClass>();
Container.Bind<BindClass>().AsSingle();
var res2 = Container.Resolve<BindClass>();
//trueが返ってくる(Unbindしてるのに同じインスタンス!!!!)
Assert.True(res1.GetHashCode() == res2.GetHashCode());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment