I have the following structure:
abstract class Base {
public abstract List<...> Get(); //What should be the generic type?
}
class SubOne :
I don't think you can get it to be the specific subclass. You can do this though:
abstract class Base {
public abstract List Get();
}
class SubOne : Base {
public override List Get() {
throw new NotImplementedException();
}
}
class SubTwo : Base {
public override List Get() {
throw new NotImplementedException();
}
}