Пример #1
0
        public ModelFolderCollection Copy()
        {
            ModelFolderCollection copiedFolders = new ModelFolderCollection(itemCount);

            foreach (ModelFolder folder in this)
            {
                copiedFolders.Add(folder.Copy());
            }
            return(copiedFolders);
        }
Пример #2
0
        public ModelFolderCollection Clone()
        {
            ModelFolderCollection clonedModelFolder = new ModelFolderCollection(itemCount);

            foreach (ModelFolder item in this)
            {
                clonedModelFolder.Add(item);
            }
            return(clonedModelFolder);
        }