I have a class named module in Modules class library.
public class Module{}
And implementations like this.
public class ModuleA: Module{...}
public class ModuleB: Module{...}
public class ModuleC: Module{...}
I want to create a class that will create instances and give me a list that inherited from Module
class.
public class ModulesFactory{
public IList<Module> GetModules(){
???????
???????
}
}
I could not select inherited calsses in class library.
Aucun commentaire:
Enregistrer un commentaire