Пример #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);
 }