/// <summary> /// Clone the items in another collection to create this one. /// </summary> /// <param name="editors">The collection to clone</param> public ContentFileEditorCollection(ContentFileEditorCollection editors) { foreach (ContentFileEditor e in editors) { base.Add((ContentFileEditor)e.Clone()); } }
/// <summary> /// Add a range of items from another collection /// </summary> /// <param name="range">The range of items to add</param> /// <remarks>The entries are not cloned.</remarks> public void AddRange(ContentFileEditorCollection range) { if (range != null) { foreach (ContentFileEditor editor in range) { base.Add(editor); } } }