ActiveReports 19 .NET Edition
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)
    public static IEnumerable<TResult> SelectWithPrevNext<T,TResult>( 
       IEnumerable<T> items,
       Func<T,T,T,TResult> selector
    )
    where T: class

    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