SenseNet.Services.ContentStore.ContentStoreService.CreateFakeRootForFeed C# (CSharp) Method

CreateFakeRootForFeed() private static method

private static CreateFakeRootForFeed ( Content feed ) : Content
feed Content
return 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;
        }