AsMetadataTree<TDocument>(IEnumerable<TDocument>, string) Method
Namespace
Statiq.Common
Containing Type
IDocumentEnumerableExtensions

Syntax

public static DocumentMetadataTree<TDocument> AsMetadataTree<TDocument>(this IEnumerable<TDocument> documents, string childrenKey = "Children") 
    where TDocument : IDocument

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
documents IEnumerable<TDocument>
childrenKey string

Return Value

Type Description
DocumentMetadataTree<TDocument>