Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="roots"></param>
        /// <returns></returns>
        private Folder getNestedFolder(NestedFolder roots)
        {
            var currentFolder = new Folder(roots.name);

            foreach (var iterfolder in roots.childrenFolders)
            {
                currentFolder.AddSubFolder(getNestedFolder(iterfolder));
            }

            return(currentFolder);
        }