Wintellect.PowerCollections Namespace
Algorithms Class
Algorithms Methods
GhostDoc Pro Sample Help File

Algorithms..::..IndicesOf<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, T)

Enumerates the indices of all the items in a list equal to a given item.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public static IEnumerable<int> IndicesOf<T>(
	IList<T> list,
	T item
)
Public Shared Function IndicesOf(Of T) ( _
	list As IList(Of T), _
	item As T _
) As IEnumerable(Of Integer)
public:
generic<typename T>
static IEnumerable<int^>^ IndicesOf(
	IList<T>^ list, 
	T item
)

Type Parameters

T

Parameters

list
Type: IList<(Of <(<'T>)>)>
The list to search.
item
Type: T
The item to search for.

Return Value

An IEnumerable<T> that enumerates the indices of items equal to item.

Remarks


The default sense of equality for T is used, as defined by T's implementation of IComparable<T>.Equals or object.Equals.