AlgorithmsIndexOfMinimumT Method (IListT) |
Finds the index of the minimum value in a list.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static int IndexOfMinimum<T>(
IList<T> list
)
where T : Object, IComparable<T>
public:
generic<typename T>
where T : Object, IComparable<T>
static int IndexOfMinimum(
IList<T>^ list
)
Parameters
- list
- Type: System.Collections.GenericIListT
The list to search.
Type Parameters
- T
- The type of items in the list.
Return Value
Type:
Int32The index of the smallest item in the list. If the minimum value appears
multiple times, the index of the first appearance is used.
Exceptions
RemarksValues in the list are compared by using the IComparable<T>
interfaces implementation on the type T.
See Also