Language

ScorableBase<Item,State,Score> Class

Definition

Allow for static type checking of opaque state for convenience of scorable implementations.

[System.Serializable]
public abstract class ScorableBase<Item,State,Score> : Microsoft.Bot.Builder.Scorables.IScorable<Item,Score>
[<System.Serializable>]
type ScorableBase<'Item, 'State, 'Score> = class
    interface IScorable<'Item, 'Score>
Public MustInherit Class ScorableBase(Of Item, State, Score)
Implements IScorable(Of Item, Score)

Type Parameters

Item
State
Score
Inheritance
ScorableBase<Item,State,Score>
Derived
Attributes
Implements

Remarks

The IScorable methods are marked with DebuggerStepThrough because once the compiler has verified the type safety of the derived class that implements the abstract State-typed methods, these DebuggerStepThrough methods will not throw exceptions due to runtime type errors.

Applies to