ComponentOne CollectionView
C1.CollectionView Assembly / C1.CollectionView 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 System.Collections.Generic.IReadOnlyList(Of T), _
       ByVal item As T _
    ) As System.Integer
    public static System.int IndexOf<T>( 
       System.Collections.Generic.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