hmemcpy / AgentMulder

** THIS PLUGIN IS NO LONGER MAINTAINED. PLEASE FOLLOW ERNICOMMUNITY FOR UPDATES **
https://github.com/ERNICommunity/AgentMulder
MIT License
151 stars 33 forks source link

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

Open robrich opened 11 years ago

robrich commented 11 years ago

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.

hmemcpy commented 11 years ago

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!