Method Where
View SourceWhere<TSource>(IAsyncEnumerable<TSource>, IAsyncEnumerable<bool>)
Filters a sequence of values based on an enumeration of boolean values
Declaration
public static IAsyncEnumerable<TSource> Where<TSource>(this IAsyncEnumerable<TSource> source, IAsyncEnumerable<bool> filter)
Parameters
Type | Name | Description |
---|---|---|
IAsyncEnumerable<TSource> | source | An IAsyncEnumerable<T> to filter. |
IAsyncEnumerable<bool> | filter | An IAsyncEnumerable<T> of boolean values identifying which elements of |
Returns
Type | Description |
---|---|
IAsyncEnumerable<TSource> | An IAsyncEnumerable<T> that contains elements from the input sequence
where the matching value in |
Type Parameters
Name | Description |
---|---|
TSource | The type of the elements of source. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentNullException |
|