using System; using System.Collections.Generic; namespace SK.Framework { /// /// 填空题 /// [Serializable] public class CompletionQuestion : QuestionBase { /// /// 答案 /// public List Answers = new List(0); public override bool IsCorrect(params object[] answers) { if (answers.Length != Answers.Count) return false; for(int i = 0; i < answers.Length; i++) { string answer = answers[i] as string; if (answer != Answers[i]) { return false; } } return true; } } }