Does Ninject Conventions only work for public classes?
问题 I started using Ninject for my project, to automatically bind all subclasses of an abstract class. The binding for this is -- nice and easy -- as follows: kernel.Bind(x => x.FromThisAssembly() .SelectAllClasses(). .InheritedFrom<AbstractGenerator>() .BindBase()); However, I found that this doesn't work. After some experimenting I found that the reason for this not working is that all my implementations (and the abstract class) are marked internal . I could imagine this to be some security