[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.EnumerableExtension.SelectWithPrevNext

SelectWithPrevNext Method

SelectWithPrevNext<T, TResult>(IEnumerable<T>, Func<T, T, T, TResult>)

Selects items with references to the previous and next elements.

Declaration
public static IEnumerable<TResult> SelectWithPrevNext<T, TResult>(this IEnumerable<T> items, Func<T, T, T, TResult> selector) where T : class
Parameters
Type Name Description
IEnumerable<T> items

The source sequence.

Func<T, T, T, TResult> selector

A function to project each element with references to the previous and next elements.

Returns
Type Description
IEnumerable<TResult>

A sequence of projected elements.

Type Parameters
Name Description
T

The type of elements in the sequence.

TResult

The type of elements in the result sequence.