Table of Contents

Class EnumeratorExtensions

Namespace
FinanceSharp
Assembly
FinanceSharp.dll

Provides convenience of linq extension methods for IEnumerator<T> types

public static class EnumeratorExtensions
Inheritance
EnumeratorExtensions
Inherited Members

Methods

SelectMany<T, TResult>(IEnumerator<T>, Func<T, IEnumerator<TResult>>)

Project the enumerator using the specified selector

public static IEnumerator<TResult> SelectMany<T, TResult>(this IEnumerator<T> enumerator, Func<T, IEnumerator<TResult>> selector)

Parameters

enumerator IEnumerator<T>
selector Func<T, IEnumerator<TResult>>

Returns

IEnumerator<TResult>

Type Parameters

T
TResult

Select<T, TResult>(IEnumerator<T>, Func<T, TResult>)

Project the enumerator using the specified selector

public static IEnumerator<TResult> Select<T, TResult>(this IEnumerator<T> enumerator, Func<T, TResult> selector)

Parameters

enumerator IEnumerator<T>
selector Func<T, TResult>

Returns

IEnumerator<TResult>

Type Parameters

T
TResult

Where<T>(IEnumerator<T>, Func<T, bool>)

Filter the enumerator using the specified predicate

public static IEnumerator<T> Where<T>(this IEnumerator<T> enumerator, Func<T, bool> predicate)

Parameters

enumerator IEnumerator<T>
predicate Func<T, bool>

Returns

IEnumerator<T>

Type Parameters

T