/// <summary> /// Initializes a new instance of the PNodeList class that contains nodes copied /// from the specified list and that has the same initial capacity as the number /// of nodes copied. /// </summary> /// <param name="list">The list whose nodes are copied to the new list.</param> public PNodeList(PNodeList list) { foreach (PNode node in list) { List.Add(node); } }
/// <summary> /// Adds the nodes of the given list to the end of this list. /// </summary> /// <param name="list"> /// The list whose nodes should be added to the end of this list. /// </param> public void AddRange(PNodeList list) { InnerList.AddRange(list); }