Inheritance: IResolvable
Example #1
0
        public string Format(Comment comment)
        {
            foreach (var step in Formatters)
            {
                if (step.Criteria(comment))
                    return step.Action(comment);
            }

            return null;
        }
Example #2
0
 /// <summary>
 /// Returns the comments in a format suitable for display
 /// </summary>
 /// <param name="comment"></param>
 /// <returns></returns>
 public string Format(Comment comment)
 {
     return Formatter.Format(comment);
 }
Example #3
0
 string FormatGeneralContainer(Comment comment)
 {
     return FormatChildren(comment.Children);
 }
Example #4
0
 public void AddChild(Comment comment)
 {
     children.Add(comment);
 }