Table of Contents

Method IndexOfRange

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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

collection IList<T>

The collection to search.

items IEnumerable<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

T

The type of elements in the collection and items.