Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / IndexOf<T> Method
The data collection.
The item that will be searched.

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

    Parameters

    dataCollection
    The data collection.
    item
    The item that will be searched.

    Type Parameters

    T
    See Also