private static HtmlTag toTag(ValueSourceReport report) { var table = new DetailsTableTag(); report.Values.OrderBy(x => x.Key).Each(pair => table.AddDetail(pair.Key, pair.Value)); var tag = new CollapsibleTag(report.ElementId(), report.Header()); tag.AppendContent(table); return tag.PrependAnchor(); }
private static HtmlTag toTag(ValueSourceReport report) { var table = new DetailsTableTag(); foreach (var key in report.Values.GetAllKeys().OrderBy(x => x)) { table.AddDetail(key, string.Join("; ", report.Values[key])); } var tag = new CollapsibleTag(report.ElementId(), report.Header()); tag.AppendContent(table); return tag.PrependAnchor(); }