コード例 #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());
     }
 }
コード例 #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);
                }
            }
        }
コード例 #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());
         }
     }
 }