/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Grade != null) { hashCode = hashCode * 59 + Grade.GetHashCode(); } if (GradeType != null) { hashCode = hashCode * 59 + GradeType.GetHashCode(); } if (GradeTypeCategory != null) { hashCode = hashCode * 59 + GradeTypeCategory.GetHashCode(); } if (Gender != null) { hashCode = hashCode * 59 + Gender.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (StaffGroup != null) { hashCode = hashCode * 59 + StaffGroup.GetHashCode(); } if (Grade != null) { hashCode = hashCode * 59 + Grade.GetHashCode(); } if (_Contract != null) { hashCode = hashCode * 59 + _Contract.GetHashCode(); } if (Payscale != null) { hashCode = hashCode * 59 + Payscale.GetHashCode(); } if (ContractType != null) { hashCode = hashCode * 59 + ContractType.GetHashCode(); } if (ContractedTime != null) { hashCode = hashCode * 59 + ContractedTime.GetHashCode(); } if (DefaultUnavailabilityHours != null) { hashCode = hashCode * 59 + DefaultUnavailabilityHours.GetHashCode(); } hashCode = hashCode * 59 + WtdOptOut.GetHashCode(); if (SalaryFrequency != null) { hashCode = hashCode * 59 + SalaryFrequency.GetHashCode(); } hashCode = hashCode * 59 + SalaryAmount.GetHashCode(); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (StaffNumber != null) { hashCode = hashCode * 59 + StaffNumber.GetHashCode(); } if (Forenames != null) { hashCode = hashCode * 59 + Forenames.GetHashCode(); } if (Surname != null) { hashCode = hashCode * 59 + Surname.GetHashCode(); } if (MobileNumber != null) { hashCode = hashCode * 59 + MobileNumber.GetHashCode(); } if (Grade != null) { hashCode = hashCode * 59 + Grade.GetHashCode(); } if (GradeType != null) { hashCode = hashCode * 59 + GradeType.GetHashCode(); } if (GradeTypeCategory != null) { hashCode = hashCode * 59 + GradeTypeCategory.GetHashCode(); } hashCode = hashCode * 59 + WTE.GetHashCode(); return(hashCode); } }