AjaxControlToolkit.Reference.Core.Rendering.CodePlexDocRenderer.RenderDescriptionBlock C# (CSharp) Method

RenderDescriptionBlock() public method

public RenderDescriptionBlock ( string>.Dictionary values ) : string
values string>.Dictionary
return string
        public string RenderDescriptionBlock(Dictionary<string, string> values)
        {
            var descriptionStringBuilder = new StringBuilder();

            descriptionStringBuilder.Append(String.Format("|| {0} || {1} ||", "Name", "Description"));
            descriptionStringBuilder.Append(this.RenderNewParagraph());
            foreach(var value in values) {
                descriptionStringBuilder.Append(String.Format("| {0} | {1} |", RenderText(value.Key), RenderText(value.Value)));
                descriptionStringBuilder.Append(this.RenderNewParagraph());
            }

            return descriptionStringBuilder.ToString();
        }