Class IEnumerableExtensions
A static class providing IEnumerable<T> extensions
public static class IEnumerableExtensions
- Inheritance
-
objectIEnumerableExtensions
Methods
IndexOf<T>(IReadOnlyCollection<T>, T)
Returns the index of the provided element inside the read only collection
public static int IndexOf<T>(this IReadOnlyCollection<T> self, T elementToFind)
Parameters
selfIReadOnlyCollection<T>The collection to search in
elementToFindTThe element to find
Returns
- int
If found, the index of the element to find; otherwise -1
Type Parameters
TThe type of element to find