DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IReadOnlyListEx Class / IndexOf<T> Method
The list.
The item to look for.

In This Topic
    IndexOf<T> Method (IReadOnlyListEx)
    In This Topic
    Gets the index of the specified item.
    Syntax
    'Declaration
     
    Public Shared Function IndexOf(Of T As Class)( _
       ByVal list As IReadOnlyList(Of T), _
       ByVal item As T _
    ) As Integer
    public static int IndexOf<T>( 
       IReadOnlyList<T> list,
       T item
    )
    where T: class

    Parameters

    list
    The list.
    item
    The item to look for.

    Type Parameters

    T

    Return Value

    The index of the item.
    See Also