Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: int MinIndex<T, TValue>(this IEnumerable<T>, Func<T, TValue>)

Declaration

public static int MinIndex<T, TValue>(
    this IEnumerable<T> source,
    Func<T, TValue> valueSelector
)

Summary

Returns the index of the first element from the input sequence for which the value selector returns the smallest value.

Generic type parameters

TThis type parameter is not documented.
TValue
  • Must derive from: System.IComparable<TValue>.
This type parameter is not documented.

Exceptions

  • System.InvalidOperationException
    The input collection is empty.