Map() public method

public Map ( IEnumerable elements ) : IEnumerable
elements IEnumerable
return IEnumerable
Exemplo n.º 1
0
        public static IEnumerable <Post> LoadPosts()
        {
            var xdoc        = XDocument.Load(@"..\..\..\Files\posts.xml");
            var badgeMapper = new PostMapper();

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