public T GetCompetitorInfoType <T>(CompetititorInfoTypeEnum competitorInfoType) where T : CompetitorInfoBase { if (_competitorInfoTypeLookups == null || !_competitorInfoTypeLookups.ContainsKey(competitorInfoType)) { throw new Exception("Competitor info not registered"); } return((T)Activator.CreateInstance(_competitorInfoTypeLookups[competitorInfoType], new object[] { competitorInfoType })); }
public CompetitorInfoAttribute(CompetititorInfoTypeEnum competitorInfoType) { CompetitorInfoType = competitorInfoType; }
protected CompetitorInfoBase(CompetititorInfoTypeEnum competitorInfoType) { CompetitorInfoType = competitorInfoType; }
public TableTennisCompetitorInfo(CompetititorInfoTypeEnum competitorInfoType) : base(competitorInfoType) { }