Let\'s assume I have a business case I want to use some model to represent a master-child structure. And there will be certain classes to inherit from both the master class and
You may get somewhere with generics:
public abstract class BaseMaster where TCHild : BaseChild
{
// this probably doesn't have to be 'abstract' anymore
public abstract ReadOnlyCollection Children { get; }
}
public class FirstRealMaster : BaseMaster
{
}
But we don't know enough about the relation between Master and Child classes to be sure.