API / MusicTheory.Training
AnswerResult<T> record
The outcome of checking an answer.
Constructors
AnswerResult<T>(bool IsCorrect, double Score, T? Expected)The outcome of checking an answer.
IsCorrect- Whether the given answer is right.
Score- 1 when correct, 0 otherwise.
Expected- The expected answer.
Properties
bool IsCorrect { get; init; }Whether the given answer is right.
double Score { get; init; }1 when correct, 0 otherwise.
T? Expected { get; init; }The expected answer.