grumpydev / TinyIoC

An easy to use, hassle free, Inversion of Control Container for small projects, libraries and beginners alike.
MIT License
830 stars 235 forks source link

QUESTION: Can I disable property injection? #142

Closed EvilBeaver closed 3 years ago

EvilBeaver commented 3 years ago

I don't want property injections on object creation. How can I disable it?

grumpydev commented 3 years ago

Property injection doesn't happen automatically, you have to manually called "BuildUp" to do it, so it is "disabled" if you're just using ctor injection.

EvilBeaver commented 3 years ago

Thanks. I was confused by a phrase in wiki: "Any public read/write property that we can resolve, that isn't already set to a value, is resolved by the container".