Partager via


Scorable.Fold<Item,Score> Méthode

Définition

Pliez une énumération de scorables à l’aide d’un comparateur de score.

public static Microsoft.Bot.Builder.Scorables.IScorable<Item,Score> Fold<Item,Score> (this System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.Scorables.IScorable<Item,Score>> scorables, System.Collections.Generic.IComparer<Score> comparer = default, Microsoft.Bot.Builder.Scorables.Internals.FoldScorable<Item,Score>.OnStageDelegate onStage = default);
static member Fold : seq<Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score>> * System.Collections.Generic.IComparer<'Score> * Microsoft.Bot.Builder.Scorables.Internals.FoldScorable<'Item, 'Score>.OnStageDelegate -> Microsoft.Bot.Builder.Scorables.IScorable<'Item, 'Score>
<Extension()>
Public Function Fold(Of Item, Score) (scorables As IEnumerable(Of IScorable(Of Item, Score)), Optional comparer As IComparer(Of Score) = Nothing, Optional onStage As FoldScorable(Of Item, Score).OnStageDelegate = Nothing) As IScorable(Of Item, Score)

Paramètres de type

Item
Score

Paramètres

scorables
IEnumerable<IScorable<Item,Score>>
comparer
IComparer<Score>

Retours

S’applique à