Пример #1
0
        public override bool Equals(Object other)
        {
            if (other == null)
            {
                return(false);
            }
            if (other is Lecturer lecturer)
            {
                return(Id.Equals(lecturer.Id) && LecturerCode.Equals(lecturer.LecturerCode));
            }

            return(false);
        }
Пример #2
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ LecturerCode.GetHashCode());
 }