AsyncEnumerable
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence.
For aggregation behavior with incremental intermediate results, see System.Interactive.Async.AsyncEnumerableEx.Scan{TSource}.
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value.
For aggregation behavior with incremental intermediate results, see System.Interactive.Async.AsyncEnumerableEx.Scan{TSource, Accumulate}".
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value,
and the specified result selector function is used to select the result value.
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence.
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value.
Applies an accumulator function over an async-enumerable sequence, returning the result of the aggregation as a single element in the result sequence. The specified seed value is used as the initial accumulator value,
and the specified result selector is used to select the result value.
public static ValueTask<
TResult>
AggregateAwaitWithCancellationAsync<
TSource,
TAccumulate,
TResult>(
this IAsyncEnumerable<
TSource>
source,
TAccumulate seed,
Func<
TAccumulate,
TSource,
CancellationToken,
ValueTask<
TAccumulate>>
accumulator,
Func<
TAccumulate,
CancellationToken,
ValueTask<
TResult>>
resultSelector,
CancellationToken cancellationToken =
default)
Determines whether all elements of an async-enumerable sequence satisfy a condition.
Determines whether all elements in an async-enumerable sequence satisfy a condition.
Determines whether an async-enumerable sequence contains any elements.
Determines whether any element of an async-enumerable sequence satisfies a condition.
Determines whether any element in an async-enumerable sequence satisfies a condition.
Append a value to an async-enumerable sequence.
Hides the identity of an async-enumerable sequence.
Computes the average of an async-enumerable sequence of
Int32 values.
Computes the average of an async-enumerable sequence of
Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Int64 values.
Computes the average of an async-enumerable sequence of
Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Single values.
Computes the average of an async-enumerable sequence of
Single values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Double values.
Computes the average of an async-enumerable sequence of
Double values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Decimal values.
Computes the average of an async-enumerable sequence of
Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Nullable<T> values.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Nullable<T> values.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Nullable<T> values.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Nullable<T> values.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Nullable<T> values.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the average of an async-enumerable sequence of
Int32 values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Int64 values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Single values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Double values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Decimal values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Computes the average of an async-enumerable sequence of
Nullable<T> values that are obtained by invoking an asynchronous transform function on each element of the source sequence and awaiting the result.
Converts the elements of an async-enumerable sequence to the specified type.
Concatenates the second async-enumerable sequence to the first async-enumerable sequence upon successful termination of the first.
Determines whether an async-enumerable sequence contains a specified element by using the default equality comparer.
Determines whether an async-enumerable sequence contains a specified element by using a specified System.Collections.Generic.IEqualityComparer{T}.
Returns an async-enumerable sequence containing an
Int32 that represents the total number of elements in an async-enumerable sequence.
Returns an async-enumerable sequence containing an
Int32 that represents how many elements in the specified async-enumerable sequence satisfy a condition.
Counts the elements in an async-enumerable sequence that satisfy a condition.
Creates a new enumerable using the specified delegates implementing the members of
IAsyncEnumerable<T>.
Returns the elements of the specified sequence or the type parameter's default value in a singleton sequence if the sequence is empty.
Returns the elements of the specified sequence or the specified value in a singleton sequence if the sequence is empty.
Returns an async-enumerable sequence that contains only distinct elements.
Returns an async-enumerable sequence that contains only distinct elements according to the comparer.
Returns the element at a specified index in a sequence.
Returns the element at a specified index in a sequence or a default value if the index is out of range.
Returns an empty async-enumerable sequence.
Produces the set difference of two async-enumerable sequences by using the default equality comparer to compare values.
Produces the set difference of two async-enumerable sequences by using the specified equality comparer to compare values.
Returns the first element of an async-enumerable sequence.
Returns the first element of an async-enumerable sequence that satisfies the condition in the predicate.
Returns the first element of an async-enumerable sequence that satisfies the condition in the predicate.
Returns the first element of an async-enumerable sequence, or a default value if no such element exists.
Returns the first element of an async-enumerable sequence that satisfies the condition in the predicate, or a default value if no such element exists.
Returns the first element of an async-enumerable sequence that satisfies the condition in the predicate, or a default value if no element satisfies the condition in the predicate.
Invokes an action for each element in the async-enumerable sequence, and returns a Task object that will get signaled when the sequence terminates.
Invokes an action for each element in the async-enumerable sequence, incorporating the element's index, and returns a Task object that will get signaled when the sequence terminates.
Invokes and awaits an asynchronous action on each element in the source sequence, and returns a task that is signaled when the sequence terminates.
Invokes and awaits an asynchronous action on each element in the source sequence, incorporating the element's index, and returns a task that is signaled when the sequence terminates.
Groups the elements of an async-enumerable sequence according to a specified key selector function.
Groups the elements of an async-enumerable sequence according to a specified key selector function and comparer.
Groups the elements of an async-enumerable sequence and selects the resulting elements by using a specified function.
Groups the elements of an async-enumerable sequence according to a specified key selector function and comparer and selects the resulting elements by using a specified function.
public static IAsyncEnumerable<
TResult>
GroupBy<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
TKey>
keySelector,
Func<
TSource,
TElement>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
TResult>
resultSelector)
public static IAsyncEnumerable<
TResult>
GroupBy<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
TKey>
keySelector,
Func<
TSource,
TElement>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
TResult>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Groups the elements of an async-enumerable sequence according to a specified key selector function.
Groups the elements of an async-enumerable sequence according to a specified key selector function and comparer.
Groups the elements of an async-enumerable sequence and selects the resulting elements by using a specified function.
Groups the elements of an async-enumerable sequence according to a specified key selector function, and then applies a result selector function to each group.
public static IAsyncEnumerable<
TResult>
GroupByAwait<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
ValueTask<
TElement>>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
ValueTask<
TResult>>
resultSelector)
Groups the elements of an async-enumerable sequence according to a specified key-selector function, applies an element selector to each element of each group, then applies a result selector to each transformed group.
Groups the elements of an async-enumerable sequence and selects the resulting elements by using a specified function.
Groups the elements of an async-enumerable sequence according to a specified key selector function, and then applies a result selector function to each group.
public static IAsyncEnumerable<
TResult>
GroupByAwait<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
ValueTask<
TElement>>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Groups the elements of an async-enumerable sequence according to a specified key-selector function, applies an element selector to each element of each group, then applies a result selector to each transformed group.
public static IAsyncEnumerable<
TResult>
GroupByAwaitWithCancellation<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
CancellationToken,
ValueTask<
TResult>>
resultSelector)
public static IAsyncEnumerable<
IAsyncGrouping<
TKey,
TElement>>
GroupByAwaitWithCancellation<
TSource,
TKey,
TElement>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
IEqualityComparer<
TKey>
comparer)
public static IAsyncEnumerable<
TResult>
GroupByAwaitWithCancellation<
TSource,
TKey,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TKey,
IAsyncEnumerable<
TSource>,
CancellationToken,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
public static IAsyncEnumerable<
TResult>
GroupByAwaitWithCancellation<
TSource,
TKey,
TElement,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
Func<
TKey,
IAsyncEnumerable<
TElement>,
CancellationToken,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
public static IAsyncEnumerable<
TResult>
GroupJoin<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
TKey>
outerKeySelector,
Func<
TInner,
TKey>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
TResult>
resultSelector)
Correlates the elements of two async-enumerable sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.
public static IAsyncEnumerable<
TResult>
GroupJoin<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
TKey>
outerKeySelector,
Func<
TInner,
TKey>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
TResult>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Correlates the elements of two async-enumerable sequences based on equality of keys and groups the results. The specified equality comparer is used to compare keys.
public static IAsyncEnumerable<
TResult>
GroupJoinAwait<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
ValueTask<
TResult>>
resultSelector)
public static IAsyncEnumerable<
TResult>
GroupJoinAwait<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
public static IAsyncEnumerable<
TResult>
GroupJoinAwaitWithCancellation<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
CancellationToken,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
CancellationToken,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
CancellationToken,
ValueTask<
TResult>>
resultSelector)
public static IAsyncEnumerable<
TResult>
GroupJoinAwaitWithCancellation<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
CancellationToken,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
CancellationToken,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
IAsyncEnumerable<
TInner>,
CancellationToken,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Produces the set intersection of two async-enumerable sequences by using the default equality comparer to compare values.
Produces the set intersection of two async-enumerable sequences by using the specified equality comparer to compare values.
public static IAsyncEnumerable<
TResult>
Join<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
TKey>
outerKeySelector,
Func<
TInner,
TKey>
innerKeySelector,
Func<
TOuter,
TInner,
TResult>
resultSelector)
Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
public static IAsyncEnumerable<
TResult>
Join<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
TKey>
outerKeySelector,
Func<
TInner,
TKey>
innerKeySelector,
Func<
TOuter,
TInner,
TResult>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Correlates the elements of two sequences based on matching keys. A specified equality comparer is used to compare keys.
public static IAsyncEnumerable<
TResult>
JoinAwait<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
TInner,
ValueTask<
TResult>>
resultSelector)
public static IAsyncEnumerable<
TResult>
JoinAwait<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
TInner,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
public static IAsyncEnumerable<
TResult>
JoinAwaitWithCancellation<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
CancellationToken,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
CancellationToken,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
TInner,
CancellationToken,
ValueTask<
TResult>>
resultSelector)
public static IAsyncEnumerable<
TResult>
JoinAwaitWithCancellation<
TOuter,
TInner,
TKey,
TResult>(
this IAsyncEnumerable<
TOuter>
outer,
IAsyncEnumerable<
TInner>
inner,
Func<
TOuter,
CancellationToken,
ValueTask<
TKey>>
outerKeySelector,
Func<
TInner,
CancellationToken,
ValueTask<
TKey>>
innerKeySelector,
Func<
TOuter,
TInner,
CancellationToken,
ValueTask<
TResult>>
resultSelector,
IEqualityComparer<
TKey>
comparer)
Returns the last element of an async-enumerable sequence.
Returns the last element of an async-enumerable sequence that satisfies the condition in the predicate.
Returns the last element of an async-enumerable sequence that satisfies the condition in the predicate.
Returns the last element of an async-enumerable sequence, or a default value if no such element exists.
Returns the last element of an async-enumerable sequence that satisfies the condition in the predicate, or a default value if no such element exists.
Returns the last element of an async-enumerable sequence that satisfies the condition in the predicate, or a default value if no such element exists.
Returns an async-enumerable sequence containing an
Int64 that represents the total number of elements in an async-enumerable sequence.
Returns an async-enumerable sequence containing an
Int64 that represents how many elements in the specified async-enumerable sequence satisfy a condition.
Returns an async-enumerable sequence containing a
Int64 that represents the number of elements in the specified async-enumerable sequence that satisfy a condition.
Returns the maximum element in an async-enumerable sequence.
Invokes a transform function on each element of a sequence and returns the maximum value.
Returns the maximum value in an async-enumerable sequence of
Int32 values.
Returns the maximum value in an async-enumerable sequence of
Nullable<T> values.
Returns the maximum value in an async-enumerable sequence of
Int64 values.
Returns the maximum value in an async-enumerable sequence of
Nullable<T> values.
Returns the maximum value in an async-enumerable sequence of
Single values.
Returns the maximum value in an async-enumerable sequence of
Nullable<T> values.
Returns the maximum value in an async-enumerable sequence of
Double values.
Returns the maximum value in an async-enumerable sequence of
Nullable<T> values.
Returns the maximum value in an async-enumerable sequence of
Decimal values.
Returns the maximum value in an async-enumerable sequence of
Nullable<T> values.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Int64 value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Single value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Double value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Decimal value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the maximum value.
Returns the maximum
Int32 value in an async-enumerable sequence.
Returns the maximum
Nullable<T> value in an async-enumerable sequence.
Returns the minimum element in an async-enumerable sequence.
Invokes a transform function on each element of a sequence and returns the minimum value.
Returns the minimum value in an async-enumerable sequence of
Int32 values.
Returns the minimum value in an async-enumerable sequence of
Nullable<T> values.
Returns the minimum value in an async-enumerable sequence of
Int64 values.
Returns the minimum value in an async-enumerable sequence of
Nullable<T> values.
Returns the minimum value in an async-enumerable sequence of
Single values.
Returns the minimum value in an async-enumerable sequence of
Nullable<T> values.
Returns the minimum value in an async-enumerable sequence of
Double values.
Returns the minimum value in an async-enumerable sequence of
Nullable<T> values.
Returns the minimum value in an async-enumerable sequence of
Decimal values.
Returns the minimum value in an async-enumerable sequence of
Nullable<T> values.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Double value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Decimal value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Int32 value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Int64 value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Single value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum
Nullable<T> value.
Invokes and awaits a transform function on each element of a sequence and returns the minimum value.
Filters the elements of an async-enumerable sequence based on the specified type.
Sorts the elements of a sequence in ascending order according to a key.
Sorts the elements of a sequence in ascending order by using a specified comparer.
Sorts the elements of a sequence in ascending order according to a key obtained by invoking a transform function on each element and awaiting the result.
Sorts the elements of a sequence in ascending order by using a specified comparer. The keys are obtained by invoking the transform function on each element and awaiting the result.
Sorts the elements of a sequence in descending order according to a key.
Sorts the elements of a sequence in descending order by using a specified comparer.
Sorts the elements of a sequence in descending order according to a key obtained by invoking a transform function on each element and awaiting the result.
Sorts the elements of a sequence in descending order by using a specified comparer. The keys are obtained by invoking the transform function on each element and awaiting the result.
Prepend a value to an async-enumerable sequence.
Generates an async-enumerable sequence of integral numbers within a specified range.
Generates an async-enumerable sequence that repeats the given element the specified number of times.
Inverts the order of the elements in a sequence.
Projects each element of an async-enumerable sequence into a new form.
Projects each element of an async-enumerable sequence into a new form by incorporating the element's index.
Projects each element of an async-enumerable sequence into a new form by applying an asynchronous selector function to each member of the source sequence and awaiting the result.
Projects each element of an async-enumerable sequence into a new form by applying an asynchronous selector function that incorporates each element's index to each element of the source sequence and awaiting the result.
Projects each element of an async-enumerable sequence to an async-enumerable sequence and merges the resulting async-enumerable sequences into one async-enumerable sequence.
Projects each element of an async-enumerable sequence to an async-enumerable sequence by incorporating the element's index and merges the resulting async-enumerable sequences into one async-enumerable sequence.
Projects each element of an async-enumerable sequence to an async-enumerable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one async-enumerable sequence.
Projects each element of an async-enumerable sequence to an async-enumerable sequence by incorporating the element's index, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one async-enumerable sequence.
Projects each element of an async-enumerable sequence into an async-enumerable sequence and merges the resulting async-enumerable sequences into one async-enumerable sequence.
Projects each element of an async-enumerable sequence into an async-enumerable sequence by incorporating the element's index and merges the resulting async-enumerable sequences into an async-enumerable sequence.
Projects each element of an async-enumerable sequence to an async-enumerable sequence by awaiting the result of a transform function, invokes the result selector for each of the source elements and each of the corrasponding inner-sequence's elements and awaits the result, and merges the results into one async-enumerable sequence.
Projects each element of an async-enumerable sequence to an async-enumerable sequence by awaiting the result of a transform function that incorporates each element's index,
invokes the result selector for the source element and each of the corrasponding inner-sequence's elements and awaits the result, and merges the results into one async-enumerable sequence.
public static IAsyncEnumerable<
TResult>
SelectManyAwaitWithCancellation<
TSource,
TCollection,
TResult>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
int,
CancellationToken,
ValueTask<
IAsyncEnumerable<
TCollection>>>
collectionSelector,
Func<
TSource,
TCollection,
CancellationToken,
ValueTask<
TResult>>
resultSelector)
Determines whether two sequences are equal by comparing the elements pairwise.
Determines whether two sequences are equal by comparing the elements pairwise using a specified equality comparer.
Returns the only element of an async-enumerable sequence, and reports an exception if there is not exactly one element in the async-enumerable sequence.
Returns the only element of an async-enumerable sequence that satisfies the condition in the predicate, and reports an exception if there is not exactly one element in the async-enumerable sequence.
Returns the only element of an async-enumerable sequence that satisfies the condition in the asynchronous predicate, and reports an exception if there is not exactly one element in the async-enumerable sequence that matches the predicate.
Returns the only element of an async-enumerable sequence, or a default value if the async-enumerable sequence is empty; this method reports an exception if there is more than one element in the async-enumerable sequence.
Returns the only element of an async-enumerable sequence that matches the predicate, or a default value if no such element exists; this method reports an exception if there is more than one element in the async-enumerable sequence.
Returns the only element of an async-enumerable sequence that satisfies the condition in the asynchronous predicate, or a default value if no such element exists, and reports an exception if there is more than one element in the async-enumerable sequence that matches the predicate.
Bypasses a specified number of elements in an async-enumerable sequence and then returns the remaining elements.
Bypasses a specified number of elements at the end of an async-enumerable sequence.
Bypasses elements in an async-enumerable sequence as long as a specified condition is true and then returns the remaining elements.
Bypasses elements in an async-enumerable sequence as long as a specified condition is true and then returns the remaining elements.
The element's index is used in the logic of the predicate function.
Bypasses elements in an async-enumerable sequence as long as a condition is true, and then returns the remaining elements.
Bypasses elements in an async-enumerable sequence as long as a condition is true, and then returns the remaining elements.
The index of the element is used by the predicate.
Computes the sum of a sequence of
Int32 values.
Computes the sum of a sequence of
Int32 values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Int64 values.
Computes the sum of a sequence of
Int64 values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Single values.
Computes the sum of a sequence of
Single values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Double values.
Computes the sum of a sequence of
Double values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Decimal values.
Computes the sum of a sequence of
Decimal values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the input sequence.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Int32 values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Int64 values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Single values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Double values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Decimal values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Computes the sum of a sequence of
Nullable<T> values that are obtained by invoking a transform function on each element of the source sequence and awaiting the result.
Returns a specified number of contiguous elements from the start of an async-enumerable sequence.
Returns a specified number of contiguous elements from the end of an async-enumerable sequence.
Returns elements from an async-enumerable sequence as long as a specified condition is true.
Returns elements from an async-enumerable sequence as long as a specified condition is true.
The element's index is used in the logic of the predicate function.
Returns elements from an async-enumerable sequence as long as a specified condition is true.
Returns elements from an async-enumerable sequence as long as a specified condition is true.
The element's index is used in the logic of the predicate function.
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.
Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer.
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key obtained by invoking a transform function on each element and awaiting the result.
Performs a subsequent ordering of the elements in a sequence in ascending order by using a specified comparer. The keys are obtained by invoking a transform function on each element and awaiting the result.
Performs a subsequent ordering of the elements in a sequence in descending order, according to a key.
Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer.
Performs a subsequent ordering of the elements in a sequence in descending order, according to a key obtained by invoking a transform function on each element and awaiting the result.
Performs a subsequent ordering of the elements in a sequence in descending order by using a specified comparer. The keys are obtained by invoking a transform function on each element and awaiting the result.
Creates an array from an async-enumerable sequence.
Converts an enumerable sequence to an async-enumerable sequence.
Converts an observable sequence to an async-enumerable sequence.
Converts a task to an async-enumerable sequence.
Creates a dictionary from an async-enumerable sequence according to a specified key selector function.
Creates a dictionary from an async-enumerable sequence according to a specified key selector function, and a comparer.
Creates a dictionary from an async-enumerable sequence according to a specified key selector function, and an element selector function.
Creates a dictionary from an async-enumerable sequence according to a specified key selector function, a comparer, and an element selector function.
Creates a dictionary from an async-enumerable sequence by invoking a key-selector function on each element and awaiting the result.
Creates a dictionary from an async-enumerable sequence by invoking a key-selector function on each element and awaiting the result.
Creates a dictionary from an async-enumerable sequence using the specified asynchronous key and element selector functions.
Creates a dictionary from an async-enumerable sequence using the specified asynchronous key and element selector functions.
public static ValueTask<
Dictionary<
TKey,
TElement>>
ToDictionaryAwaitWithCancellationAsync<
TSource,
TKey,
TElement>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
CancellationToken cancellationToken =
default)
public static ValueTask<
Dictionary<
TKey,
TElement>>
ToDictionaryAwaitWithCancellationAsync<
TSource,
TKey,
TElement>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
IEqualityComparer<
TKey>
comparer,
CancellationToken cancellationToken =
default)
Converts an async-enumerable sequence to an enumerable sequence.
Creates a hash set from an async-enumerable sequence.
Creates a hash set from an async-enumerable sequence.
Creates a list from an async-enumerable sequence.
Creates a lookup from an async-enumerable sequence according to a specified key selector function.
Creates a lookup from an async-enumerable sequence according to a specified key selector function, and a comparer.
Creates a lookup from an async-enumerable sequence according to a specified key selector function, and an element selector function.
Creates a lookup from an async-enumerable sequence according to a specified key selector function, a comparer, and an element selector function.
Creates a lookup from an async-enumerable sequence by invoking a key-selector function on each element and awaiting the result.
Creates a lookup from an async-enumerable sequence by invoking key and element selector functions on each source element and awaiting the results.
Creates a lookup from an async-enumerable sequence by invoking a key-selector function on each element and awaiting the result.
Creates a lookup from an async-enumerable sequence by invoking key and element selector functions on each source element and awaiting the results.
public static ValueTask<
ILookup<
TKey,
TElement>>
ToLookupAwaitWithCancellationAsync<
TSource,
TKey,
TElement>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
CancellationToken cancellationToken =
default)
public static ValueTask<
ILookup<
TKey,
TElement>>
ToLookupAwaitWithCancellationAsync<
TSource,
TKey,
TElement>(
this IAsyncEnumerable<
TSource>
source,
Func<
TSource,
CancellationToken,
ValueTask<
TKey>>
keySelector,
Func<
TSource,
CancellationToken,
ValueTask<
TElement>>
elementSelector,
IEqualityComparer<
TKey>
comparer,
CancellationToken cancellationToken =
default)
Converts an async-enumerable sequence to an observable sequence.
Produces the set union of two sequences by using the default equality comparer.
Produces the set union of two sequences by using a specified equality comparer.
Filters the elements of an async-enumerable sequence based on a predicate.
Filters the elements of an async-enumerable sequence based on a predicate by incorporating the element's index.
Filters the elements of an async-enumerable sequence based on an asynchronous predicate.
Filters the elements of an async-enumerable sequence based on an asynchronous predicate that incorporates the element's index.
Merges two async-enumerable sequences into one async-enumerable sequence by combining their elements in a pairwise fashion.
Merges two async-enumerable sequences into one async-enumerable sequence by combining their elements in a pairwise fashion.