IncrementalValueProviderExtensions.Where<TSource> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters values from an IncrementalValuesProvider<TValues> based on a predicate, producing a new IncrementalValuesProvider<TValues> containing only values that satisfy the predicate.
public static Microsoft.CodeAnalysis.IncrementalValuesProvider<TSource> Where<TSource>(this Microsoft.CodeAnalysis.IncrementalValuesProvider<TSource> source, Func<TSource,bool> predicate);
static member Where : Microsoft.CodeAnalysis.IncrementalValuesProvider<'Source> * Func<'Source, bool> -> Microsoft.CodeAnalysis.IncrementalValuesProvider<'Source>
<Extension()>
Public Function Where(Of TSource) (source As IncrementalValuesProvider(Of TSource), predicate As Func(Of TSource, Boolean)) As IncrementalValuesProvider(Of TSource)
Type Parameters
- TSource
The type of each value
Parameters
- source
- IncrementalValuesProvider<TSource>
The input provider
A function that determines whether a value should be included in the output
Returns
A new IncrementalValuesProvider<TValues> that provides only values where the predicate returns true