public static HtmlObject Find(this IChildrenCollectionProvider container, String id)
 {
     if (String.IsNullOrEmpty(id))
     {
         return(null);
     }
     return(container.Find((c) => id.Equals(c.Id, StringComparison.OrdinalIgnoreCase)));
 }
 public static HtmlObject Find(this IChildrenCollectionProvider container, Type type, String id)
 {
     Assert.NullArgument(type, "type");
     if (String.IsNullOrEmpty(id))
     {
         return(null);
     }
     return(container.Find((c) => type.IsAssignableFrom(c.GetType()) &&
                           id.Equals(c.Id, StringComparison.OrdinalIgnoreCase)));
 }
 public static HtmlObject Find(this IChildrenCollectionProvider container, Type type)
 {
     Assert.NullArgument(type, "type");
     return(container.Find((c) => type.IsAssignableFrom(c.GetType())));
 }
 public static TControl Find <TControl>(this IChildrenCollectionProvider container) where TControl : HtmlObject
 {
     return((TControl)container.Find(typeof(TControl)));
 }