Beispiel #1
0
        public static PublishedTree ToPublishedTree(this IEnumerable <Post> posts)
        {
            var result = new PublishedTree();

            posts.ToList().ForEach(result.AddPost);
            return(result);
        }
Beispiel #2
0
 public static PublishedTree ToPublishedTree(this IEnumerable<Post> posts)
 {
     var result = new PublishedTree();
     posts.ToList().ForEach(result.AddPost);
     return result;
 }