コード例 #1
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));
        }
コード例 #2
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));
        }
コード例 #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));
        }
コード例 #4
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ OperationHelper.GetHash(Answers));
 }
コード例 #5
0
 public override int GetHashCode()
 {
     return(OperationHelper.GetHash(Questions) ^ ExamId);
 }
コード例 #6
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^ OperationHelper.GetHashCodeFromObject(CorrectAnswer));
 }
コード例 #7
0
 public override int GetHashCode()
 {
     return(OperationHelper.GetHashCodeFromObject(Title));
 }