public ControlFactoryElement LookupByKey(string key) { ControlFactoryElement retval = base.BaseGet(key) as ControlFactoryElement; if (retval == null) { throw new ArgumentException("key"); } return(retval); }
protected override object GetElementKey(ConfigurationElement element) { ControlFactoryElement elem = element as ControlFactoryElement; if (elem == null) { throw new ArgumentException("Argument must be non-null and of type ControlFactoryElement", "element"); } return(elem.Key == null ? string.Empty : elem.Key); }
public void Remove(ControlFactoryElement element) { this.BaseRemove(this.GetElementKey(element)); }
public void Add(ControlFactoryElement element) { this.BaseAdd(element); }