Algorithms..::..IndicesOf<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, T, IEqualityComparer<(Of <(<'T>)>)>)
Enumerates the indices of all the items in a list equal to a given item. A passed
IEqualityComparer is used to determine equality.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public static IEnumerable<int> IndicesOf<T>( IList<T> list, T item, IEqualityComparer<T> equalityComparer )
Public Shared Function IndicesOf(Of T) ( _ list As IList(Of T), _ item As T, _ equalityComparer As IEqualityComparer(Of T) _ ) As IEnumerable(Of Integer)
public: generic<typename T> static IEnumerable<int^>^ IndicesOf( IList<T>^ list, T item, IEqualityComparer<T>^ equalityComparer )
Type Parameters
- T
Parameters
- list
- Type: IList<(Of <(<'T>)>)>
The list to search.
- item
- Type: T
The item to search for.
- equalityComparer
- Type: IEqualityComparer<(Of <(<'T>)>)>
The IEqualityComparer<T> used to compare items for equality. Only the Equals method will be called.