Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select greediest non-obsolete constructor #55

Open
adbre opened this issue Apr 17, 2014 · 1 comment
Open

Select greediest non-obsolete constructor #55

adbre opened this issue Apr 17, 2014 · 1 comment

Comments

@adbre
Copy link
Contributor

adbre commented Apr 17, 2014

I want TinyIoC to automatically select constructor, but I do not want TinyIoC to select a constructor marked with the ObsoleteAttribute.

Since this may break compability with current resolution behaviour, what about

Container.Register<MyClass>().IgnoreObsoleteConstructors();

or

Container.IgnoreObsoleteConstructors = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants