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

            return null;
        }
示例#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);
 }
示例#3
0
 string FormatGeneralContainer(Comment comment)
 {
     return FormatChildren(comment.Children);
 }
示例#4
0
文件: Comment.cs 项目: cdrnet/docu
 public void AddChild(Comment comment)
 {
     children.Add(comment);
 }