コード例 #1
0
        public override bool Equals(object obj)
        {
            var other = obj as MultipleChoiceQuestion;

            if (obj == null || !base.Equals(other))
            {
                return(false);
            }

            return(OperationHelper.CheckEquality(CorrectAnswers, other.CorrectAnswers));
        }
コード例 #2
0
        public override bool Equals(object obj)
        {
            var other = obj as ChooseAnswerQuestion;

            if (obj == null || !base.Equals(other))
            {
                return(false);
            }

            return(OperationHelper.CheckEquality(Answers, other.Answers));
        }
コード例 #3
0
        public override bool Equals(object obj)
        {
            var other = obj as Exam;

            if (other == null)
            {
                return(false);
            }

            return(ExamId == other.ExamId && OperationHelper.CheckEquality(Questions, other.Questions));
        }