[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectManyWithPrev

SelectManyWithPrev Method

SelectManyWithPrev<TSource, TResult>(IEnumerable<TSource>, Func<TResult, TSource, IEnumerable<TResult>>)

Selects many items with a previous element reference.

Declaration
public static IEnumerable<TResult> SelectManyWithPrev<TSource, TResult>(this IEnumerable<TSource> source, Func<TResult, TSource, IEnumerable<TResult>> selector)
Parameters
Type Name Description
IEnumerable<TSource> source

The source sequence.

Func<TResult, TSource, IEnumerable<TResult>> selector

A function to project each element and its previous element into a sequence of results.

Returns
Type Description
IEnumerable<TResult>

A sequence of projected elements.

Type Parameters
Name Description
TSource

The type of elements in the source sequence.

TResult

The type of elements in the result sequence.