public static IEnumerable <TControl> FindAll <TControl>(this IChildrenCollectionProvider container) where TControl : HtmlObject { return(container.FindAll((control) => control is TControl).Cast <TControl>()); }
public static HtmlControl Find(this IChildrenCollectionProvider container, Predicate <HtmlObject> matchCriteria) { return(container.FindAll(matchCriteria).FirstOrDefault()); }