コード例 #1
0
        /// <summary>
        /// Returns true if VacancyPersonRequirements instances are equal
        /// </summary>
        /// <param name="other">Instance of VacancyPersonRequirements to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(VacancyPersonRequirements other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Grade == other.Grade ||
                     Grade != null &&
                     Grade.Equals(other.Grade)
                     ) &&
                 (
                     GradeType == other.GradeType ||
                     GradeType != null &&
                     GradeType.Equals(other.GradeType)
                 ) &&
                 (
                     GradeTypeCategory == other.GradeTypeCategory ||
                     GradeTypeCategory != null &&
                     GradeTypeCategory.Equals(other.GradeTypeCategory)
                 ) &&
                 (
                     Gender == other.Gender ||
                     Gender != null &&
                     Gender.Equals(other.Gender)
                 ));
        }
コード例 #2
0
        /// <summary>
        /// Returns true if HoursAssignmentPerson instances are equal
        /// </summary>
        /// <param name="other">Instance of HoursAssignmentPerson to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(HoursAssignmentPerson other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     StaffNumber == other.StaffNumber ||
                     StaffNumber != null &&
                     StaffNumber.Equals(other.StaffNumber)
                     ) &&
                 (
                     Forenames == other.Forenames ||
                     Forenames != null &&
                     Forenames.Equals(other.Forenames)
                 ) &&
                 (
                     Surname == other.Surname ||
                     Surname != null &&
                     Surname.Equals(other.Surname)
                 ) &&
                 (
                     MobileNumber == other.MobileNumber ||
                     MobileNumber != null &&
                     MobileNumber.Equals(other.MobileNumber)
                 ) &&
                 (
                     Grade == other.Grade ||
                     Grade != null &&
                     Grade.Equals(other.Grade)
                 ) &&
                 (
                     GradeType == other.GradeType ||
                     GradeType != null &&
                     GradeType.Equals(other.GradeType)
                 ) &&
                 (
                     GradeTypeCategory == other.GradeTypeCategory ||
                     GradeTypeCategory != null &&
                     GradeTypeCategory.Equals(other.GradeTypeCategory)
                 ) &&
                 (
                     WTE == other.WTE ||

                     WTE.Equals(other.WTE)
                 ));
        }