I\'m working on an abstract class where the implementing class needs to implement a list of T. The problem is that this doesn\'t work:
public class AbstractC
You need to mark AbstractClass abstract
, because it contains abstract property
Specify the generic type in the AbstractClass
declaration
Implement abstract property with override
public abstract class AbstractClass
{
public int Id { get; set; }
public int Name { get; set; }
public abstract List Items { get; set; }
}
public class Container : AbstractClass
{
public override List Items { get; set; }
}