Condividi tramite


Extensions.MaxBy<T,R> Metodo

Definizione

public static T MaxBy<T,R> (this System.Collections.Generic.IEnumerable<T> items, Func<T,R> selectRank, System.Collections.Generic.IComparer<R> comparer = default);
static member MaxBy : seq<'T> * Func<'T, 'R> * System.Collections.Generic.IComparer<'R> -> 'T
<Extension()>
Public Function MaxBy(Of T, R) (items As IEnumerable(Of T), selectRank As Func(Of T, R), Optional comparer As IComparer(Of R) = Nothing) As T

Parametri di tipo

T
R

Parametri

items
IEnumerable<T>
selectRank
Func<T,R>
comparer
IComparer<R>

Restituisce

T

Si applica a