/// <summary> /// Adds a OrgNodeType to the collection at a specific index. /// </summary> /// <param name="index">The index at which to add the item.</param> /// <param name="item">The OrgNodeType to add.</param> public void AddAt(int index, OrgNodeType item) { List.Insert(index, item); }
/// <summary> /// Adds a OrgNodeType to the collection. /// </summary> /// <param name="item">The OrgNodeType to add.</param> public void Add(OrgNodeType item) { List.Add(item); }
private void SetItemProperties(OrgNodeType item) { item._Parent = Parent; }
/// <summary> /// Removes a OrgNodeType from the collection. /// </summary> /// <param name="item">The OrgNodeType to remove.</param> public void Remove(OrgNodeType item) { List.Remove(item); }
/// <summary> /// Determines zero-based index of a OrgNodeType within the collection. /// </summary> /// <param name="item">The OrgNodeType to locate within the collection.</param> /// <returns>The zero-based index.</returns> public int IndexOf(OrgNodeType item) { return List.IndexOf(item); }
/// <summary> /// Determines if a OrgNodeType is in the collection. /// </summary> /// <param name="item">The OrgNodeType to search for.</param> /// <returns>true if the OrgNodeType exists within the collection. false otherwise.</returns> public bool Contains(OrgNodeType item) { return List.Contains(item); }