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

Already on GitHub? Sign in to your account

Support generic convention: ISomeType matches SomeType (drop the I for class name) #40

Open
robrich opened this Issue Jan 25, 2013 · 1 comment

Comments

Projects
None yet
2 participants

robrich commented Jan 25, 2013

Ninject.Extensions.Conventions has a nice convention that ISomeType is implemented by SomeType (drop the I, look for class in the same namespace & assembly). In theory, this need not be bound to Ninject, but rather a "generic convenion IoC" based on that rule.

Owner

hmemcpy commented Jan 25, 2013

Interesting, thanks for letting me know.
Some containers (StructureMap, and Windsor, I believe) support this out of the box. I will try adding this to Ninject.

It would make sense to make this a "Generic" convention, but I wonder if it always applies. I will have to investigate further.

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment