예제 #1
0
 /// <summary>
 /// Reduce the set of matched elements
 /// </summary>
 public static IEnumerable <HElement> Filter(this HContainer element, Func <int, HElement, bool> selection)
 {
     if (element != null)
     {
         return(element.Descendants().Filter(selection));
     }
     return(Enumerable.Empty <HElement>());
 }
예제 #2
0
 /// <summary>
 /// Get the descendants elements of the element with a selector
 /// </summary>
 public static IEnumerable <HElement> Find(this HContainer element, String selector)
 {
     if (element != null)
     {
         return(element.Descendants(selector));
     }
     return(Enumerable.Empty <HElement>());
 }
예제 #3
0
 /// <summary>
 /// Remove elements from the set of elements
 /// </summary>
 public static IEnumerable <HElement> Not(this HContainer element, IEnumerable <HElement> selection)
 {
     if (element != null)
     {
         return(element.Descendants().Not(selection));
     }
     return(Enumerable.Empty <HElement>());
 }