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

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