/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (DistrictEquipmentType != null) { hash = hash * 59 + DistrictEquipmentType.GetHashCode(); } if (LocalArea != null) { hash = hash * 59 + LocalArea.GetHashCode(); } if (AskNextBlock1 != null) { hash = hash * 59 + AskNextBlock1.GetHashCode(); } if (AskNextBlock1Seniority != null) { hash = hash * 59 + AskNextBlock1Seniority.GetHashCode(); } if (AskNextBlock2 != null) { hash = hash * 59 + AskNextBlock2.GetHashCode(); } if (AskNextBlock2Seniority != null) { hash = hash * 59 + AskNextBlock2Seniority.GetHashCode(); } if (AskNextBlockOpen != null) { hash = hash * 59 + AskNextBlockOpen.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (OwnerEquipmentCodePrefix != null) { hash = hash * 59 + OwnerEquipmentCodePrefix.GetHashCode(); } if (OrganizationName != null) { hash = hash * 59 + OrganizationName.GetHashCode(); } hash = hash * 59 + MeetsResidency.GetHashCode(); if (LocalArea != null) { hash = hash * 59 + LocalArea.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } if (DoingBusinessAs != null) { hash = hash * 59 + DoingBusinessAs.GetHashCode(); } if (RegisteredCompanyNumber != null) { hash = hash * 59 + RegisteredCompanyNumber.GetHashCode(); } if (PrimaryContact != null) { hash = hash * 59 + PrimaryContact.GetHashCode(); } if (IsMaintenanceContractor != null) { hash = hash * 59 + IsMaintenanceContractor.GetHashCode(); } if (WorkSafeBCPolicyNumber != null) { hash = hash * 59 + WorkSafeBCPolicyNumber.GetHashCode(); } if (WorkSafeBCExpiryDate != null) { hash = hash * 59 + WorkSafeBCExpiryDate.GetHashCode(); } if (CGLEndDate != null) { hash = hash * 59 + CGLEndDate.GetHashCode(); } if (ArchiveCode != null) { hash = hash * 59 + ArchiveCode.GetHashCode(); } if (ArchiveReason != null) { hash = hash * 59 + ArchiveReason.GetHashCode(); } if (ArchiveDate != null) { hash = hash * 59 + ArchiveDate.GetHashCode(); } if (Contacts != null) { hash = hash * 59 + Contacts.GetHashCode(); } if (Notes != null) { hash = hash * 59 + Notes.GetHashCode(); } if (Attachments != null) { hash = hash * 59 + Attachments.GetHashCode(); } if (History != null) { hash = hash * 59 + History.GetHashCode(); } if (EquipmentList != null) { hash = hash * 59 + EquipmentList.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); hash = hash * 59 + StartDate.GetHashCode(); hash = hash * 59 + EndDate.GetHashCode(); if (LocalArea != null) { hash = hash * 59 + LocalArea.GetHashCode(); } if (Equipment != null) { hash = hash * 59 + Equipment.GetHashCode(); } if (BlockNumber != null) { hash = hash * 59 + BlockNumber.GetHashCode(); } if (Owner != null) { hash = hash * 59 + Owner.GetHashCode(); } if (OwnerOrganizationName != null) { hash = hash * 59 + OwnerOrganizationName.GetHashCode(); } if (Seniority != null) { hash = hash * 59 + Seniority.GetHashCode(); } if (ServiceHoursLastYear != null) { hash = hash * 59 + ServiceHoursLastYear.GetHashCode(); } if (ServiceHoursTwoYearsAgo != null) { hash = hash * 59 + ServiceHoursTwoYearsAgo.GetHashCode(); } if (ServiceHoursThreeYearsAgo != null) { hash = hash * 59 + ServiceHoursThreeYearsAgo.GetHashCode(); } if (IsSeniorityOverridden != null) { hash = hash * 59 + IsSeniorityOverridden.GetHashCode(); } if (SeniorityOverrideReason != null) { hash = hash * 59 + SeniorityOverrideReason.GetHashCode(); } return(hash); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks hash = hash * 59 + Id.GetHashCode(); if (Project != null) { hash = hash * 59 + Project.GetHashCode(); } if (LocalArea != null) { hash = hash * 59 + LocalArea.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } if (DistrictEquipmentType != null) { hash = hash * 59 + DistrictEquipmentType.GetHashCode(); } hash = hash * 59 + EquipmentCount.GetHashCode(); if (ExpectedHours != null) { hash = hash * 59 + ExpectedHours.GetHashCode(); } if (ExpectedStartDate != null) { hash = hash * 59 + ExpectedStartDate.GetHashCode(); } if (ExpectedEndDate != null) { hash = hash * 59 + ExpectedEndDate.GetHashCode(); } if (FirstOnRotationList != null) { hash = hash * 59 + FirstOnRotationList.GetHashCode(); } if (Notes != null) { hash = hash * 59 + Notes.GetHashCode(); } if (Attachments != null) { hash = hash * 59 + Attachments.GetHashCode(); } if (History != null) { hash = hash * 59 + History.GetHashCode(); } if (RentalRequestAttachments != null) { hash = hash * 59 + RentalRequestAttachments.GetHashCode(); } if (RentalRequestRotationList != null) { hash = hash * 59 + RentalRequestRotationList.GetHashCode(); } return(hash); } }