Beispiel #1
0
 /**
  * Build out this discussion by adding a comment.
  *
  * @param comment The comment to add.
  * @return this.
  */
 public Discussion SetComment(Comment comment)
 {
     AddComment(comment);
     return this;
 }
Beispiel #2
0
 /**
  * Add a comment.
  *
  * @param comment The comment to add.
  */
 public void AddComment(Comment comment)
 {
     if (_comments == null)
     {
         _comments = new List<Comment>();
     }
     _comments.Add(comment);
 }
Beispiel #3
0
 /**
  * Build out this discussion by adding a comment.
  *
  * @param comment The comment to add.
  * @return this.
  */
 public Discussion SetComment(Comment comment)
 {
     AddComment(comment);
     return(this);
 }
 public virtual void VisitComment(Comment comment)
 {
     //no-op.
 }
 public override void VisitComment(Comment comment)
 {
     BindIfNeeded(comment);
     base.VisitComment(comment);
 }