MESCIUS.ActiveReports.Core.Rendering Assembly / GrapeCity.ActiveReports.Rendering.Tools Namespace / EnumerableExtension Class / SelectWithPrevNext<T,TResult> Method
The type of elements in the sequence.
The type of elements in the result sequence.
The source sequence.
A function to project each element with references to the previous and next elements.

In This Topic
SelectWithPrevNext<T,TResult> Method
In This Topic
Selects items with references to the previous and next elements.
Syntax
'Declaration
 
Public Shared Function SelectWithPrevNext
    (Of T As Class,
     TResult)( _
   ByVal items As IEnumerable(Of T), _
   ByVal selector As Func(Of T,T,T,TResult) _
) As IEnumerable(Of TResult)
 

Parameters

items
The source sequence.
selector
A function to project each element with references to the previous and next elements.

Type Parameters

T
The type of elements in the sequence.
TResult
The type of elements in the result sequence.

Return Value

A sequence of projected elements.
See Also