AlgorithmsIndicesOfManyT Method (IListT, IEnumerableT, IEqualityComparerT) |
Enumerates the indices of all the items in a list equal to one of several given items. A passed
IEqualityComparer is used to determine equality.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static IEnumerable<int> IndicesOfMany<T>(
IList<T> list,
IEnumerable<T> itemsToLookFor,
IEqualityComparer<T> equalityComparer
)
public:
generic<typename T>
static IEnumerable<int>^ IndicesOfMany(
IList<T>^ list,
IEnumerable<T>^ itemsToLookFor,
IEqualityComparer<T>^ equalityComparer
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list to search. - itemsToLookFor
- Type: System.Collections.GenericIEnumerableT
A collection of items to search for. - equalityComparer
- Type: System.Collections.GenericIEqualityComparerT
The IEqualityComparer<T> used to compare items for equality.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.IndicesOfMany``1(System.Collections.Generic.IList{``0},System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IEqualityComparer{``0})"]
Return Value
Type:
IEnumerableInt32An IEnumerable<T> that enumerates the indices of items equal to
any of the items in the collection
itemsToLookFor.
See Also