[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.SelectWithNext

SelectWithNext Method

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

Proceeds each item in enumerable with its follower.

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

Source collection.

Func<TSource, TSource, TResult> projection

Projection function (x,y) -> z, where x is current item and y is next.

Returns
Type Description
IEnumerable<TResult>

result of application of a projection function to source

Type Parameters
Name Description
TSource

Type of collection item.

TResult

Type of result collection item.