EnumerableEnumerator<TValue> Class
Wraps a function that produces an IEnumerator<T> and provides it as a IEnumerator<T>.
Namespace
Statiq.Common
Interfaces
  • IEnumerable<TValue>
  • IEnumerable
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IEnumerable<TValue>"] Type-.->Interface1["IEnumerable"] Type["EnumerableEnumerator<TValue>"] class Type type-node

Syntax

public class EnumerableEnumerator<TValue> : IEnumerable<TValue>, IEnumerable

Type Parameters

Name Description
TValue The value type.

Constructors

Methods

Name Return Value Summary
GetEnumerator() IEnumerator<TValue>

Extension Methods

Name Value Summary
Concat<TValue>(TValue) IEnumerable<T>
GetNext<TValue>(TValue, IEqualityComparer<TValue>) T
GetNext<TValue>(TValue) T
GetPrevious<TValue>(TValue, IEqualityComparer<TValue>) T
GetPrevious<TValue>(TValue) T
GroupByMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, TElement>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
GroupByMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, TElement>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
GroupByMany<TValue, TKey>(Func<TValue, IEnumerable<TKey>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
GroupByMany<TValue, TKey>(Func<TValue, IEnumerable<TKey>>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys.
GroupByManyToMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, IEnumerable<TElement>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
GroupByManyToMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, IEnumerable<TElement>>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ParallelForEachAsync<TValue>(Func<TValue, Task>, CancellationToken) Task
ParallelSelectAsync<TValue, TResult>(Func<TValue, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<TValue, TResult>(Func<TValue, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<TValue>(Func<TValue, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
StartsWith<TValue>(IEnumerable<TValue>, IEqualityComparer<TValue>) bool
Determines whether the items starts with the specified values.
StartsWith<TValue>(IEnumerable<TValue>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<EnumerableEnumerator<TValue>>(string) T
ToDocument<EnumerableEnumerator<TValue>>(IContentProvider) IDocument
ToDocument<EnumerableEnumerator<TValue>>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<EnumerableEnumerator<TValue>>(NormalizedPath, IContentProvider) IDocument
ToDocument<EnumerableEnumerator<TValue>>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<EnumerableEnumerator<TValue>>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<EnumerableEnumerator<TValue>>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<TValue>(Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToDocuments<TValue>(Func<TValue, IEnumerable<KeyValuePair<string, object>>>, Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToDocuments<TValue>(Func<TValue, NormalizedPath>, Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToDocuments<TValue>(Func<TValue, NormalizedPath>, Func<TValue, IEnumerable<KeyValuePair<string, object>>>, Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToDocuments<TValue>(Func<TValue, NormalizedPath>, Func<TValue, NormalizedPath>, Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToDocuments<TValue>(Func<TValue, NormalizedPath>, Func<TValue, NormalizedPath>, Func<TValue, IEnumerable<KeyValuePair<string, object>>>, Func<TValue, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, TElement>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
ToLookupMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, TElement>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
ToLookupMany<TValue, TKey>(Func<TValue, IEnumerable<TKey>>, IEqualityComparer<TKey>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
ToLookupMany<TValue, TKey>(Func<TValue, IEnumerable<TKey>>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys.
ToLookupManyToMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, IEnumerable<TElement>>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
ToLookupManyToMany<TValue, TKey, TElement>(Func<TValue, IEnumerable<TKey>>, Func<TValue, IEnumerable<TElement>>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ToStringTable<TValue>(string[], Func<TValue, object>[]) string