IDocumentEnumerableExtensions Class
Extensions for working with specific types of collections.
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["IDocumentEnumerableExtensions"] class Type type-node

Syntax

public static class IDocumentEnumerableExtensions

Methods

Name Return Value Summary
AsDestinationTree<TDocument>(IEnumerable<TDocument>) DocumentPathTree<TDocument>
static
AsMetadataTree<TDocument>(IEnumerable<TDocument>, string) DocumentMetadataTree<TDocument>
static
AsSourceTree<TDocument>(IEnumerable<TDocument>) DocumentPathTree<TDocument>
static
ContainsById(IEnumerable<IDocument>, IDocument) bool
static
FilterDestinations<TDocument>(IEnumerable<TDocument>, IEnumerable<string>, bool, string) FilteredDocumentList<TDocument>
Filters the documents by destination.
static
FilterDestinations<TDocument>(IEnumerable<TDocument>, string[]) FilteredDocumentList<TDocument>
Filters the documents by destination.
static
FilterSources<TDocument>(IEnumerable<TDocument>, IEnumerable<string>, bool, string) FilteredDocumentList<TDocument>
Filters the documents by source.
static
FilterSources<TDocument>(IEnumerable<TDocument>, string[]) FilteredDocumentList<TDocument>
Filters the documents by source.
static
FirstOrDefaultDestination<TDocument>(IEnumerable<TDocument>, IEnumerable<string>, bool, string) TDocument
static
FirstOrDefaultDestination<TDocument>(IEnumerable<TDocument>, string[]) TDocument
static
FirstOrDefaultSource<TDocument>(IEnumerable<TDocument>, IEnumerable<string>, bool, string) TDocument
static
FirstOrDefaultSource<TDocument>(IEnumerable<TDocument>, string[]) TDocument
static
Flatten<TDocument>(IEnumerable<TDocument>, bool, string) DocumentList<TDocument>
Flattens a tree structure.
static
Flatten<TDocument>(IEnumerable<TDocument>, string, string) DocumentList<TDocument>
Flattens a tree structure.
static
Flatten<TDocument>(IEnumerable<TDocument>, string) DocumentList<TDocument>
Flattens a tree structure.
static
RemoveTreePlaceholders<TDocument>(IEnumerable<TDocument>, string) IEnumerable<TDocument>
Removes tree placeholder documents (this method will not flatten a tree).
static
ToDocumentList<TDocument>(IEnumerable<TDocument>) DocumentList<TDocument>
static
ToImmutableDocumentArray<TDocument>(IEnumerable<TDocument>) ImmutableArray<TDocument>
Creates an immutable array from the specified document collection and removes null items.
static
WhereContainsAllKeys<TDocument>(IEnumerable<TDocument>, string[]) DocumentList<TDocument>
Returns all documents that contain all of the specified metadata keys.
static
WhereContainsAnyKeys<TDocument>(IEnumerable<TDocument>, string[]) DocumentList<TDocument>
Returns all documents that contain any of the specified metadata keys.
static
WhereContainsKey<TDocument>(IEnumerable<TDocument>, string) DocumentList<TDocument>
Returns all documents that contain the specified metadata key.
static