[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.WithProgress

WithProgress Method

WithProgress<T, T2>(IEnumerable<T>, IProgress<T2>, Func<T, T2>)

Provides support for LINQ queries with a progress provider.

Declaration
public static IEnumerable<T> WithProgress<T, T2>(this IEnumerable<T> items, IProgress<T2> progress, Func<T, T2> getProgressInfo)
Parameters
Type Name Description
IEnumerable<T> items

The source sequence.

IProgress<T2> progress

The IProgress<T> instance to report progress to.

Func<T, T2> getProgressInfo

A function to get progress information from an element.

Returns
Type Description
IEnumerable<T>

A sequence that reports progress.

Type Parameters
Name Description
T

The type of elements in the sequence.

T2

The type of progress information.