IndexOf<T> Method (IReadOnlyListEx)
In This Topic
Gets the index of the specified item.
Syntax
'Declaration
Public Shared Function IndexOf(Of As Class)( _
ByVal As System.Collections.Generic.IReadOnlyList(Of T), _
ByVal As _
) As System.Integer
public static System.int IndexOf<>(
System.Collections.Generic.IReadOnlyList<T> ,
)
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