[]
        
(Showing Draft Content)

GrapeCity.Enterprise.Data.Expressions.Tools.EnumerableExtensions.WithIndex

WithIndex Method

WithIndex<T>(T, int)

Wraps an item of type T into type OrderedItem<T>, adding the specified index

Declaration
public static OrderedItem<T> WithIndex<T>(this T item, int index)
Parameters
Type Name Description
T item

The item

int index

Index for item

Returns
Type Description
OrderedItem<T>

Returns new instance OrderedItem<T> with the specified index

Type Parameters
Name Description
T

Item type