AjaxControlToolkit.Reference.Core.Rendering.HtmlDocRenderer.RenderListItem C# (CSharp) 메소드

RenderListItem() 공개 메소드

public RenderListItem ( StringBuilder sb, DocBase member, string>.Func memberNameTransform = null ) : void
sb StringBuilder
member DocBase
memberNameTransform string>.Func
리턴 void
        void RenderListItem(StringBuilder sb, DocBase member, Func<DocBase, string> memberNameTransform = null)
        {
            sb.Append("\t");
            sb.Append("<li>");
            var memberName = memberNameTransform == null ? member.Name : memberNameTransform(member);
            sb.Append(RenderBold(memberName));
            sb.Append(" - ");
            sb.Append(member.Summary);
            sb.AppendLine("</li>");
        }