Kooboo.Commerce.Categories.CategoryTree.GetAllCategoryKeys C# (CSharp) Méthode

GetAllCategoryKeys() private méthode

private GetAllCategoryKeys ( ) : List
Résultat List
        private List<EntityKey> GetAllCategoryKeys()
        {
            var keys = new List<EntityKey>();
            foreach (var category in Categories)
            {
                keys.Add(new EntityKey(typeof(Category), category.Id));

                foreach (var descendant in category.Descendants())
                {
                    keys.Add(new EntityKey(typeof(Category), descendant.Id));
                }
            }

            return keys;
        }