상속: 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);
 }