Map() public method

public Map ( IEnumerable elements ) : IEnumerable
elements IEnumerable
return IEnumerable
Exemplo n.º 1
0
        public static IEnumerable <Badge> LoadBadges()
        {
            var xdoc        = XDocument.Load(@"..\..\..\Files\badges.xml");
            var badgeMapper = new BadgeMapper();

            return(badgeMapper.Map(xdoc.Descendants("row")));
        }
Exemplo n.º 2
0
 public static IEnumerable<Badge> LoadBadges()
 {
     var xdoc = XDocument.Load(@"..\..\..\Files\badges.xml");
     var badgeMapper = new BadgeMapper();
     return badgeMapper.Map(xdoc.Descendants("row"));
 }