A
Aquila Deus
Hi all!
I just thought of that the "Type" should be made as a generic class:
Type<T>, and a typeof(DerivedClass) should inherit typeof(BaseClass)
and typeof(SomeInterface), so that you may do this:
interface CarFactory {
Type<ICar> GetCarType();
}
and enforce this method to return a type that implements ICar
I just thought of that the "Type" should be made as a generic class:
Type<T>, and a typeof(DerivedClass) should inherit typeof(BaseClass)
and typeof(SomeInterface), so that you may do this:
interface CarFactory {
Type<ICar> GetCarType();
}
and enforce this method to return a type that implements ICar