public ControlAssemblyElement LookupByName(string name)
        {
            ControlAssemblyElement retval = base.BaseGet(name) as ControlAssemblyElement;

            if (retval == null)
            {
                throw new ArgumentException("key");
            }
            return(retval);
        }
        protected override object GetElementKey(ConfigurationElement element)
        {
            ControlAssemblyElement elem = element as ControlAssemblyElement;

            if (elem == null)
            {
                throw new ArgumentException("Argument must be non-null and of type NegroniAssemblyElement", "element");
            }
            return(elem.Name == null ? string.Empty : elem.Name);
        }
 public void Remove(ControlAssemblyElement element)
 {
     this.BaseRemove(this.GetElementKey(element));
 }
 public void Add(ControlAssemblyElement element)
 {
     this.BaseAdd(element);
 }