Ninject: GetAll instances that inherit from the same abstract class
问题 Is it possible for Ninject to get all instances that inherit from a specific Abstract Class? For example, I have the following Abstract Class. public abstract class MyAbstractClass { } Then I have the following two derived classes that both inherit from the same abstract class. public class MyDerivedClass1 : MyAbstractClass { } public class MyDerivedClass2 : MyAbstractClass { } Now I am going to bind both derived classes with the Kernel because I want them to be in singleton scope. _kernel =