Esempio n. 1
0
        private static string GetTeamAcronym(TeamSection teamSection)
        {
            string teamClass   = teamSection.teamHeader.Attributes["class"].Value;
            string teamAcronym = teamClass.Substring(teamClass.Length - 3);

            return(teamAcronym);
        }
Esempio n. 2
0
        private TeamInfo GetTeam(TeamSection teamSection)
        {
            var team = new TeamInfo()
            {
                Name    = teamSection.teamHeader.InnerText,
                Acronym = GetTeamAcronym(teamSection),
            };

            season.Teams.Add(team);
            return(team);
        }