コード例 #1
0
        public override bool Equals(Object obj)
        {
            DoctorAppointment item = obj as DoctorAppointment;

            if (item == null)
            {
                return(false);
            }
            return(UtilityMethods.CheckIfStringsMatch(this.Date, item.Date) && this.DoctorUserId == item.DoctorUserId && this.PatientUserId == item.PatientUserId && UtilityMethods.CheckIfStringsMatch(this.RoomId, item.RoomId) && this.Start == item.Start);
        }