Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int IndexOf<T>(this IEnumerable<T>, T, IEqualityComparer<T>)

Declaration

public static int IndexOf<T>(
    this IEnumerable<T> source,
    T element,
    IEqualityComparer<T> comparer = null
)

Summary

Returns the index of the first element in this source that is equal to the specified element as determined by the specified comparer. If no such elements are found, returns -1.

Generic type parameters

TThis type parameter is not documented.