using System; using System.Collections.Generic; namespace SK.Framework { /// /// 多项选择题 /// [Serializable] public class MultipleChoiceQuestion : QuestionBase { /// /// 选项类型 /// public ChoiceType choiceType; /// /// 选项 /// public List Choices = new List(0); /// /// 答案 /// public List Answers = new List(0); public override bool IsCorrect(params object[] answers) { if (Answers.Count != answers.Length) return false; for(int i = 0; i < answers.Length; i++) { int answer = (int)answers[i]; if (Answers[i] != answer) { return false; } } return true; } } }