Map() public method

public Map ( IEnumerable elements ) : IEnumerable
elements IEnumerable
return IEnumerable
Ejemplo n.º 1
0
        public static IEnumerable <Comment> LoadComments()
        {
            var xdoc          = XDocument.Load(@"..\..\..\Files\comments.xml");
            var commentMapper = new CommentMapper();

            return(commentMapper.Map(xdoc.Descendants("row")));
        }
Ejemplo n.º 2
0
 public static IEnumerable<Comment> LoadComments()
 {
     var xdoc = XDocument.Load(@"..\..\..\Files\comments.xml");
     var commentMapper = new CommentMapper();
     return commentMapper.Map(xdoc.Descendants("row"));
 }