ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Data.ExpressionInfo Assembly / GrapeCity.Enterprise.Data.Expressions.Tools Namespace / EnumerableExtensions Class / WithIndex<T> Method
Item type
The item
Index for item

In This Topic
    WithIndex<T> Method
    In This Topic
    Wraps an item of type T into type OrderedItem<T>, adding the specified index
    Syntax
    'Declaration
     
    Public Shared Function WithIndex(Of T)( _
       ByVal item As T, _
       ByVal index As Integer _
    ) As OrderedItem(Of T)
    public static OrderedItem<T> WithIndex<T>( 
       T item,
       int index
    )

    Parameters

    item
    The item
    index
    Index for item

    Type Parameters

    T
    Item type

    Return Value

    Returns new instance OrderedItem<T> with the specified index
    See Also