IndexOf<>(source, predicate, startIndex) IndexOf<>(source, element, comparer) JoinString<>(values, separator, prefix, suffix, lastSeparator) Order<>(source, comparer) SkipLast<>(source, count, throwIfNotEnough) Split<>(splitWhat, splitWhere) Split<>(source, chunkSize) ToDictionary2<>(source, key1Selector, key2Selector, comparer1, comparer2) ToDictionary2<>(source, key1Selector, key2Selector, elementSelector, comparer1, comparer2)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: IEnumerable<int> SelectIndexWhere<T>(this IEnumerable<T>, Predicate<T>)Declarationpublic 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 parametersT |
The type of elements in the collection. |
Parametersthis 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. |