/// <summary> /// Add a new element to the collection. If there is already a element with the same name in the collection it will be overridden /// </summary> /// <param name="element"> </param> public void Add(ServerElement element) { BaseAdd(element); // Add custom code here. }
/// <summary> /// Remove a element from the collection /// </summary> /// <param name="element"> The element which should be removed </param> public void Remove(ServerElement element) { if (BaseIndexOf(element) >= 0) BaseRemove(element.Name); }
/// <summary> /// Returns the position of the specific ServerElement /// </summary> /// <param name="element"> The element whish should be looked up </param> /// <returns> The index of the element </returns> public int IndexOf(ServerElement element) { return BaseIndexOf(element); }