- Namespace
- Statiq
.Common - Containing Type
- I
Document Enumerable Extensions
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 |
|
patterns | IEnumerable |
|
flatten | bool | |
childrenKey | string |
Return Value
Type | Description |
---|---|
TDocument |