using System; using System.Collections.Generic; namespace SK.Framework { /// /// 单项选择题 /// [Serializable] public class SingleChoiceQuestion : QuestionBase { /// /// 选项类型 /// public ChoiceType choiceType; /// /// 选项 /// public List Choices = new List(0); /// /// 答案 /// public int Answer; public override bool IsCorrect(params object[] answers) { int answer = (int)answers[0]; return answer == Answer; } } }