Ejemplo n.º 1
0
 /// <summary>
 /// Insert the set of elements after the target
 /// </summary>
 public static IEnumerable <T> InsertAfter <T>(this IEnumerable <T> elements, HNode target) where T : HNode
 {
     if (elements != null && target != null)
     {
         target.AddAfter(elements.ToArray());
     }
     return(elements);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Insert element after the target
 /// </summary>
 public static T InsertAfter <T>(this T element, HNode target) where T : HNode
 {
     if (element != null && target != null)
     {
         target.AddAfter(element);
     }
     return(element);
 }