public IComponent GetComponent(string name) { foreach (IComponent component in components) if (component.Site.Name == name) return component; return null; }
public IComponent GetComponent(string name) { return(container.GetComponent(name)); }