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