ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Tools Namespace / EnumerableExtensions Class / SelectWithNext<TSource,TResult> Method
Type of collection item.
Type of result collection item.
Source collection.
Projection function (x,y) -> z, where x is current item and y is next.

In This Topic
SelectWithNext<TSource,TResult> Method
In This Topic
Proceeds each item in enumerable with its follower.
Syntax
'Declaration
 
Public Shared Function SelectWithNext
    (Of TSource,TResult)( _
   ByVal source As IEnumerable(Of TSource), _
   ByVal projection As Func(Of TSource,TSource,TResult) _
) As IEnumerable(Of TResult)
 

Parameters

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

Type Parameters

TSource
Type of collection item.
TResult
Type of result collection item.

Return Value

result of application of a projection function to source
See Also