'Declaration
<ExtensionAttribute()> Public Shared Function IndexOf(Of T As Class)( _ ByVal list As IReadOnlyList(Of T), _ ByVal item As T _ ) As Integer
'Usage
Dim list As IReadOnlyList(Of T) Dim item As T Dim value As Integer value = IReadOnlyListEx.IndexOf(Of T)(list, item)
Parameters
- list
- The list.
- item
- The item to look for.
Type Parameters
- T
Return Value
The index of the item.