public CommentSegment(NestedComment comment) { Comments = new List <NestedComment>() { comment }; }
public void AddChildComment(NestedComment comment) { if (comment != null) { if (Children == null) { Children = new CommentSegment(); } Children.Comments.Add(comment); } }