Esempio n. 1
0
 /// <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());
     }
 }
Esempio n. 2
0
        //=====================================================================

        /// <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);
                }
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Clone the items in another collection to create this one.
 /// </summary>
 /// <param name="editors">The collection to clone</param>
 public ContentFileEditorCollection(ContentFileEditorCollection editors)
 {
     if (editors != null)
     {
         foreach (ContentFileEditor e in editors)
         {
             this.Add((ContentFileEditor)e.Clone());
         }
     }
 }