ComponentOne Xamarin.Android
IndexOf<T> Method (IReadOnlyListEx)


C1.CollectionView Assembly > C1.CollectionView Namespace > IReadOnlyListEx Class : IndexOf<T> Method
The list.
The item to look for.
Gets the index of the specified item.
Syntax
'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)
[Extension()]
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

Reference

IReadOnlyListEx Class
IReadOnlyListEx Members