Inheritance: BaseMapper
示例#1
0
        public static IEnumerable <Badge> LoadBadges()
        {
            var xdoc        = XDocument.Load(@"..\..\..\Files\badges.xml");
            var badgeMapper = new BadgeMapper();

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