/// <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 (LocalArea != null) { hash = hash * 59 + LocalArea.GetHashCode(); } if (EquipmentCount != null) { hash = hash * 59 + EquipmentCount.GetHashCode(); } if (EquipmentTypeName != null) { hash = hash * 59 + EquipmentTypeName.GetHashCode(); } if (ProjectName != null) { hash = hash * 59 + ProjectName.GetHashCode(); } if (PrimaryContact != null) { hash = hash * 59 + PrimaryContact.GetHashCode(); } if (Status != null) { hash = hash * 59 + Status.GetHashCode(); } if (ProjectId != null) { hash = hash * 59 + ProjectId.GetHashCode(); } if (ExpectedStartDate != null) { hash = hash * 59 + ExpectedStartDate.GetHashCode(); } if (ExpectedEndDate != null) { hash = hash * 59 + ExpectedEndDate.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); } }