[Extension()] public static int IndexOf<T>( IReadOnlyList<T> readOnlyList, T value )
Parameters
- readOnlyList
- value
- The object to locate in readOnlyList.
Type Parameters
- T
- The type parameter of the items in the read-only list.
Return Value
The index of value if found in the list; otherwise, -1.