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

Syntax

public static TDocument FirstOrDefaultDestination<TDocument>(this IEnumerable<TDocument> documents, IEnumerable<string> patterns, bool flatten = true, string childrenKey = "Children") 
    where TDocument : IDocument

Type Parameters

Name Description
TDocument

Parameters

Name Type Description
documents IEnumerable<TDocument>
patterns IEnumerable<string>
flatten bool
childrenKey string

Return Value

Type Description
TDocument