Beispiel #1
0
 /// <summary>
 ///     Creates an html list
 /// </summary>
 /// <param name="kind">The kind of list to create</param>
 /// <param name="items">The items of the list</param>
 /// <param name="func">The method to apply to each item</param>
 /// <param name="classFunc">The class func.</param>
 public HtmlList(HtmlListKind kind, IEnumerable <T> items, Func <T, string> func, Func <T, string> classFunc)
     : base(kind == HtmlListKind.Ordered ? HtmlTextWriterTag.Ol : HtmlTextWriterTag.Ul, false)
 {
     this.Kind      = kind;
     this.Items     = items;
     this.Func      = func;
     this.ClassFunc = classFunc;
 }
Beispiel #2
0
 /// <summary>
 ///     Creates an html list
 /// </summary>
 /// <param name="kind">The kind.</param>
 /// <param name="items">The items.</param>
 /// <param name="func">The func.</param>
 public HtmlList(HtmlListKind kind, IEnumerable <T> items, Func <T, string> func) : this(kind, items, func, null)
 {
 }