Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<int> SelectIndexWhere<T>(this IEnumerable<T>, Predicate<T>)

Declaration

public static IEnumerable<int> SelectIndexWhere<T>(
    this IEnumerable<T> source,
    Predicate<T> predicate
)

Summary

Returns a collection of integers containing the indexes at which the elements of the source collection match the given predicate.

Generic type parameters

T The type of elements in the collection.

Parameters

this IEnumerable<T>source The source collection whose elements are tested using predicate.
Predicate<T>predicate The predicate against which the elements of source are tested.

Returns

A collection containing the zero-based indexes of all the matching elements, in increasing order.