[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.Select

Select Method

Select<T, TR>(IEnumerable<T>, Func<T, bool, bool, TR>)

Projection of given sequence with first, last markers.

Declaration
public static IEnumerable<TR> Select<T, TR>(this IEnumerable<T> items, Func<T, bool, bool, TR> selector)
Parameters
Type Name Description
IEnumerable<T> items

The sequence of elements to project.

Func<T, bool, bool, TR> selector

A transform function to apply to each element; the second and third parameters of the function represent whether the element is the first and last in the sequence, respectively.

Returns
Type Description
IEnumerable<TR>

returns sequence from first to last marker

Type Parameters
Name Description
T

The type of the elements of the input sequence.

TR

The type of the elements of the result sequence.