Method IndexOfRange
IndexOfRange<T>(IList<T>, IEnumerable<T>)
Finds the indices of the specified items in the given collection.
public static IEnumerable<int> IndexOfRange<T>(IList<T> collection, IEnumerable<T> items)
Parameters
collectionIList<T>The collection to search.
itemsIEnumerable<T>The items to find in the collection.
Returns
- IEnumerable<int>
An enumerable of indices where the items are found in the collection.
Type Parameters
TThe type of elements in the collection and items.