ToLookupExtensions Class

Summary

Extensions for creating lookups from document sequences.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Documents
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ToLookupExtensions"] class Type type-node

Syntax

public static class ToLookupExtensions

Methods

Name Value Summary
ToLookup<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents and the values of a specified metadata key using the value of the specified element metadata for the elements of the lookup. If a document does not contain the specified key or element metadata keys, it is not included in the result set.
static
ToLookup<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents and the values of a specified metadata key using the value of the specified element metadata for the elements of the lookup and compares the keys by using a specified comparer. If a document does not contain the specified key or element metadata keys, it is not included in the result set.
static
ToLookup<TKey>(IEnumerable<IDocument>, string) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents using the values of a specified metadata key. If a document does not contain the specified metadata key, it is not included in the result set.
static
ToLookup<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents and the values of a specified metadata key and compares the keys by using a specified comparer. If a document does not contain the specified metadata key, it is not included in the result set.
static
ToLookupMany<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and gets the elements for each group by using a specified metadata key.
static
ToLookupMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys. The keys are compared by using a comparer and each group's elements are obtained by using a specified metadata key.
static
ToLookupMany<TKey>(IEnumerable<IDocument>, string) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys.
static
ToLookupMany<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) ILookup<TKey, IDocument>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and compares the keys by using a specified comparer.
static
ToLookupManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys and gets the elements for each group by using a specified metadata key.
static
ToLookupManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence of documents according to a specified metadata key that contains a sequence of keys. The keys are compared by using a comparer and each group's elements are obtained by using a specified metadata key.
static
GitHub