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

            return null;
        }
Esempio n. 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);
 }
Esempio n. 3
0
 string FormatGeneralContainer(Comment comment)
 {
     return FormatChildren(comment.Children);
 }
Esempio n. 4
0
 public void AddChild(Comment comment)
 {
     children.Add(comment);
 }