Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ LecturerCode.GetHashCode());
 }