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