AlgorithmsIndicesOfT Method (IListT, T) |
Enumerates the indices of all the items in a list equal to a given item.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static IEnumerable<int> IndicesOf<T>(
IList<T> list,
T item
)
public:
generic<typename T>
static IEnumerable<int>^ IndicesOf(
IList<T>^ list,
T item
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list to search. - item
- Type: T
The item to search for.
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.IndicesOf``1(System.Collections.Generic.IList{``0},``0)"]
Return Value
Type:
IEnumerableInt32An IEnumerable<T> that enumerates the indices of items equal to
item.
RemarksThe default sense of equality for T is used, as defined by T's
implementation of IComparable<T>.Equals or object.Equals.
See Also