GroupByExtensions Class

Summary

Extensions grouping document sequences.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Documents
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["GroupByExtensions"] class Type type-node

Syntax

public static class GroupByExtensions

Methods

Name Value Summary
GroupBy<TKey, TElement>(IEnumerable<IDocument>, string, string) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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 group. If a document does not contain the specified key or element metadata keys, it is not included in the result set.
static
GroupBy<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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 group 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
GroupBy<TKey>(IEnumerable<IDocument>, string) IEnumerable<IGrouping<TKey, IDocument>>
Groups the elements of 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
GroupBy<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, IDocument>>
Groups the elements of 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
GroupByMany<TKey, TElement>(IEnumerable<IDocument>, string, string) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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
GroupByMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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
GroupByMany<TKey>(IEnumerable<IDocument>, string) IEnumerable<IGrouping<TKey, IDocument>>
Groups the elements of a sequence of documents according to a specified metadata key that contains a sequence of keys.
static
GroupByMany<TKey>(IEnumerable<IDocument>, string, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, IDocument>>
Groups the elements of 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
GroupByManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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
GroupByManyToMany<TKey, TElement>(IEnumerable<IDocument>, string, string, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of 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