예제 #1
0
        public LeagueAndSeasonInfo AddOrUpdateName(string key, string name)
        {
            LeagueAndSeasonInfo leagueAndSeasonInfo;

            if (!_Dictionary.TryGetValue(key, out leagueAndSeasonInfo))
            {
                var leagueInfo = new LeagueInfo(key, name);
                leagueAndSeasonInfo = new LeagueAndSeasonInfo(leagueInfo);
                _Dictionary.Add(key, leagueAndSeasonInfo);
            }
            else
            {
                leagueAndSeasonInfo.League.Name = name;
            }
            return(leagueAndSeasonInfo);
        }
예제 #2
0
 public LeagueAndSeasonInfo(LeagueInfo leagueInfo)
 {
     League  = leagueInfo;
     Seasons = new List <SeasonInfo>();
 }