EntityAssignmentComparer Class

Definition

Compare two entity assignments to determine their relative priority.

public class EntityAssignmentComparer : System.Collections.Generic.Comparer<Microsoft.Bot.Builder.Dialogs.Adaptive.EntityAssignment>
type EntityAssignmentComparer = class
    inherit Comparer<EntityAssignment>
Public Class EntityAssignmentComparer
Inherits Comparer(Of EntityAssignment)
Inheritance
EntityAssignmentComparer

Remarks

Compare by event: AssignEntity, ChooseProperty, ChooseEntity Then by operations in order from schema (usually within AssignEntity). Then by unexpected before expected. Then by oldest turn first. Then by minimum position in utterance.

Constructors

Name Description
EntityAssignmentComparer(String[])

Initializes a new instance of the EntityAssignmentComparer class.

Methods

Name Description
Compare(EntityAssignment, EntityAssignment)

Compares EntityAssignment x against y to determine its relative priority.

Applies to