public int IndexOf(
T item
)
Public Function IndexOf (
item As T
) As Integer
public:
virtual int IndexOf(
T item
) sealed
abstract IndexOf :
item : 'T -> int
override IndexOf :
item : 'T -> int
The list is searched forward starting at the first element and ending at the last element.
Only in .NET Framework, this method determines equality using the EnumComparer<TEnum>.Comparer when T is an enum type. Otherwise, the default equality comparer EqualityComparer<T>.Default will be used.
This method performs a linear search; therefore, this method is an O(n) operation.