Share via


IncrementalValueProviderExtensions Class

Definition

public static class IncrementalValueProviderExtensions
type IncrementalValueProviderExtensions = class
Public Module IncrementalValueProviderExtensions
Inheritance
IncrementalValueProviderExtensions

Methods

Name Description
Collect<TSource>(IncrementalValuesProvider<TSource>)

Collects all values from an IncrementalValuesProvider<TValues> into a single IncrementalValueProvider<TValue> containing an ImmutableArray<T>. This is useful when you need to aggregate multiple values into a single collection to process them together.

Combine<TLeft,TRight>(IncrementalValueProvider<TLeft>, IncrementalValueProvider<TRight>)

Combines two IncrementalValueProvider<TValue>s into a new IncrementalValueProvider<TValue> of a tuple. The single values from both providers are paired together.

Combine<TLeft,TRight>(IncrementalValuesProvider<TLeft>, IncrementalValueProvider<TRight>)

Combines an IncrementalValuesProvider<TValues> with an IncrementalValueProvider<TValue> to create a new IncrementalValuesProvider<TValues> of tuples. Each value from the left provider is paired with the single value from the right provider.

Select<TSource,TResult>(IncrementalValueProvider<TSource>, Func<TSource,CancellationToken,TResult>)

Transforms an IncrementalValueProvider<TValue> into a new IncrementalValueProvider<TValue> by applying a transform function to the value. This is a 1-to-1 transformation where each input value produces exactly one output value.

Select<TSource,TResult>(IncrementalValuesProvider<TSource>, Func<TSource,CancellationToken,TResult>)

Transforms an IncrementalValuesProvider<TValues> into a new IncrementalValuesProvider<TValues> by applying a transform function to each value. This is a 1-to-1 transformation where each input value produces exactly one output value.

SelectMany<TSource,TResult>(IncrementalValueProvider<TSource>, Func<TSource,CancellationToken,IEnumerable<TResult>>)

Transforms an IncrementalValueProvider<TValue> into a new IncrementalValuesProvider<TValues> by applying a transform function that returns zero or more results for the input value. This is a 1-to-many transformation where each input value can produce zero, one, or multiple output values.

SelectMany<TSource,TResult>(IncrementalValueProvider<TSource>, Func<TSource,CancellationToken,ImmutableArray<TResult>>)

Transforms an IncrementalValueProvider<TValue> into a new IncrementalValuesProvider<TValues> by applying a transform function that returns zero or more results for the input value. This is a 1-to-many transformation where each input value can produce zero, one, or multiple output values.

SelectMany<TSource,TResult>(IncrementalValuesProvider<TSource>, Func<TSource,CancellationToken,IEnumerable<TResult>>)

Transforms an IncrementalValuesProvider<TValues> into a new IncrementalValuesProvider<TValues> by applying a transform function that returns zero or more results for each input value. This is a many-to-many transformation where each input value can produce zero, one, or multiple output values.

SelectMany<TSource,TResult>(IncrementalValuesProvider<TSource>, Func<TSource,CancellationToken,ImmutableArray<TResult>>)

Transforms an IncrementalValuesProvider<TValues> into a new IncrementalValuesProvider<TValues> by applying a transform function that returns zero or more results for each input value. This is a many-to-many transformation where each input value can produce zero, one, or multiple output values.

Where<TSource>(IncrementalValuesProvider<TSource>, Func<TSource,Boolean>)

Filters values from an IncrementalValuesProvider<TValues> based on a predicate, producing a new IncrementalValuesProvider<TValues> containing only values that satisfy the predicate.

WithComparer<TSource>(IncrementalValueProvider<TSource>, IEqualityComparer<TSource>)

Specifies a custom IEqualityComparer<T> to use when comparing values from this provider for caching purposes. By default, the generator infrastructure uses Default to determine if values have changed. Use this method when you need custom equality logic, such as for complex objects or when you want to control when transformations are re-executed.

WithComparer<TSource>(IncrementalValuesProvider<TSource>, IEqualityComparer<TSource>)

Specifies a custom IEqualityComparer<T> to use when comparing values from this provider for caching purposes. By default, the generator infrastructure uses Default to determine if values have changed. Use this method when you need custom equality logic, such as for complex objects or when you want to control when transformations are re-executed.

WithTrackingName<TSource>(IncrementalValueProvider<TSource>, String)

Assigns a name to this provider step for tracking and debugging purposes. This name can be used in testing and diagnostic scenarios to understand the execution pipeline.

WithTrackingName<TSource>(IncrementalValuesProvider<TSource>, String)

Assigns a name to this provider step for tracking and debugging purposes. This name can be used in testing and diagnostic scenarios to understand the execution pipeline.

Applies to