private static string GetTeamAcronym(TeamSection teamSection) { string teamClass = teamSection.teamHeader.Attributes["class"].Value; string teamAcronym = teamClass.Substring(teamClass.Length - 3); return(teamAcronym); }
private TeamInfo GetTeam(TeamSection teamSection) { var team = new TeamInfo() { Name = teamSection.teamHeader.InnerText, Acronym = GetTeamAcronym(teamSection), }; season.Teams.Add(team); return(team); }