Пример #1
0
 public bool Equals(Exam other)
 {
     if (other is null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(SubjectName.Equals(other.SubjectName) &&
            Grade.Equals(other.Grade) &&
            DateOfPassing.Equals(other.DateOfPassing));
 }