SenseNet.Services.ContentStore.ContentStoreService.CreateFakeRootForFeed C# (CSharp) Méthode

CreateFakeRootForFeed() private static méthode

private static CreateFakeRootForFeed ( Content feed ) : Content
feed Content
Résultat Content
        private static Content CreateFakeRootForFeed(Content[] feed)
        {
            var rootNode = Node.LoadNode("/Root");
            var c = new Content(rootNode, false, false, false, false, 0, 0)
            {
                Children = feed
            };
            c.ChildCount = c.Children.Length;

            return c;
        }