为什么不从列表继承 <T> ?
问题: When planning out my programs, I often start with a chain of thought like so: 在计划程序时,我通常会像这样思考: A football team is just a list of football players. 足球队只是足球运动员的名单。 Therefore, I should represent it with: 因此,我应该用: var football_team = new List<FootballPlayer>(); The ordering of this list represent the order in which the players are listed in the roster. 该列表的顺序代表了在名单中列出球员的顺序。 But I realize later that teams also have other properties, besides the mere list of players, that must be recorded. 但是后来我意识到,除了球员名单外,球队还有其他属性,必须加以记录。 For example, the running total of scores this season, the current budget