示例#1
0
 /// <summary>
 /// Append the set of elements to the beginning of the content of the target
 /// </summary>
 public static IEnumerable <T> PrependTo <T>(this IEnumerable <T> content, HElement target) where T : HNode
 {
     if (content != null && target != null)
     {
         target.Prepend(content);
     }
     return(content);
 }
示例#2
0
 /// <summary>
 /// Append the element to the beginning of the content of the target
 /// </summary>
 public static T PrependTo <T>(this T element, HElement target) where T : HNode
 {
     if (element != null && target != null)
     {
         target.Prepend(element);
     }
     return(element);
 }