Class with generic list of the inherited class type
问题 I have 3 class: some of theme have list called descendents of some type. I would like to have a generic class in the BaseHeaderFooterItem class. and insery and type of list to it. Is there any option ? #region ParentItem public class BaseHeaderFooterItem { public string Title { get; set; } public string EnTitle { get; set; } public HyperLink Link { get; set; } public int Level { get; set; } } #endregion #region HeaderFooter public class HeaderFooter : BaseHeaderFooterItem { public List