示例#1
0
        private IEnumerable <TextContent> GetFolderCategories(TextFolder folder)
        {
            folder = folder.AsActual();
            IEnumerable <TextContent> categories = new TextContent[0];

            if (folder.Categories != null)
            {
                foreach (var categoryFolderName in folder.Categories)
                {
                    var categoryFolder = (TextFolder)(FolderHelper.Parse <TextFolder>(Repository, categoryFolderName.FolderName).AsActual());
                    var contents       = categoryFolder.CreateQuery();
                    categories = categories.Concat(contents).ToArray();
                }
            }

            return(categories);
        }