Esempio n. 1
0
        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;
 }
Esempio n. 3
0
 protected CompetitorInfoBase(CompetititorInfoTypeEnum competitorInfoType)
 {
     CompetitorInfoType = competitorInfoType;
 }
Esempio n. 4
0
 public TableTennisCompetitorInfo(CompetititorInfoTypeEnum competitorInfoType) : base(competitorInfoType)
 {
 }