public override int GetHashCode() { unchecked { return((Maximum.GetHashCode() * 397) ^ Actual.GetHashCode()); } }
public override int GetHashCode() { int result = 17; result = result * 37 + Max.GetHashCode(); result = result * 37 + Actual.GetHashCode(); result = result * 37 + Dispatch.GetHashCode(); return(result); }
public override int GetHashCode() { unchecked { var hashCode = (WorkCell != null ? WorkCell.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WorkUnit != null ? WorkUnit.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Actual.GetHashCode(); hashCode = (hashCode * 397) ^ Remaining.GetHashCode(); hashCode = (hashCode * 397) ^ Set.GetHashCode(); hashCode = (hashCode * 397) ^ OverflowRemaining.GetHashCode(); hashCode = (hashCode * 397) ^ OverflowSet.GetHashCode(); hashCode = (hashCode * 397) ^ (RuleName != null ? RuleName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RuleType != null ? RuleType.GetHashCode() : 0); 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 (Planned != null) { hashCode = hashCode * 59 + Planned.GetHashCode(); } if (Actual != null) { hashCode = hashCode * 59 + Actual.GetHashCode(); } if (ShiftType != null) { hashCode = hashCode * 59 + ShiftType.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 :) hashCode = hashCode * 59 + Id.GetHashCode(); if (When != null) { hashCode = hashCode * 59 + When.GetHashCode(); } if (Actual != null) { hashCode = hashCode * 59 + Actual.GetHashCode(); } hashCode = hashCode * 59 + WorkTime.GetHashCode(); hashCode = hashCode * 59 + ContractedTime.GetHashCode(); hashCode = hashCode * 59 + PayState.GetHashCode(); if (EmployeeType != null) { hashCode = hashCode * 59 + EmployeeType.GetHashCode(); } if (Person != null) { hashCode = hashCode * 59 + Person.GetHashCode(); } if (Assignment != null) { hashCode = hashCode * 59 + Assignment.GetHashCode(); } if (Post != null) { hashCode = hashCode * 59 + Post.GetHashCode(); } if (Posting != null) { hashCode = hashCode * 59 + Posting.GetHashCode(); } if (Cancellation != null) { hashCode = hashCode * 59 + Cancellation.GetHashCode(); } hashCode = hashCode * 59 + InCharge.GetHashCode(); if (Shift != null) { hashCode = hashCode * 59 + Shift.GetHashCode(); } if (Duty != null) { hashCode = hashCode * 59 + Duty.GetHashCode(); } if (Fulfillment != null) { hashCode = hashCode * 59 + Fulfillment.GetHashCode(); } if (CostCentre != null) { hashCode = hashCode * 59 + CostCentre.GetHashCode(); } if (OwningUnit != null) { hashCode = hashCode * 59 + OwningUnit.GetHashCode(); } if (ResourcingUnit != null) { hashCode = hashCode * 59 + ResourcingUnit.GetHashCode(); } if (Requirement != null) { hashCode = hashCode * 59 + Requirement.GetHashCode(); } if (Location != null) { hashCode = hashCode * 59 + Location.GetHashCode(); } if (AdditionalDutyReason != null) { hashCode = hashCode * 59 + AdditionalDutyReason.GetHashCode(); } hashCode = hashCode * 59 + DutyHasWarnings.GetHashCode(); return(hashCode); } }