/// <summary> /// Insert the set of elements before the target /// </summary> public static IEnumerable <T> InsertBefore <T>(this IEnumerable <T> elements, HElement target) where T : HNode { if (elements != null && target != null) { target.Before(elements.ToArray()); } return(elements); }
/// <summary> /// Insert element before the target /// </summary> public static T InsertBefore <T>(this T element, HElement target) where T : HNode { if (element != null && target != null) { target.Before(element); } return(element); }