[]
        
(Showing Draft Content)

C1.DataCollection.IReadOnlyListEx.IndexOf

IndexOf Method

IndexOf<T>(IReadOnlyList<T>, T)

Gets the index of the specified item.

Declaration
public static int IndexOf<T>(this IReadOnlyList<T> list, T item) where T : class?
Parameters
Type Name Description
IReadOnlyList<T> list

The list.

T item

The item to look for.

Returns
Type Description
int

The index of the item.

Type Parameters
Name Description
T