public override int GetHashCode() { unchecked { var hashCode = TicketID; hashCode = (hashCode * 397) ^ OffSLADurationHours.GetHashCode(); hashCode = (hashCode * 397) ^ OffSiteDurationHours.GetHashCode(); hashCode = (hashCode * 397) ^ OnSLADurationHours.GetHashCode(); hashCode = (hashCode * 397) ^ OnSiteDurationHours.GetHashCode(); hashCode = (hashCode * 397) ^ TotalDurationHours.GetHashCode(); return(hashCode); } }
private bool Equals(IDuration other) { return(TicketID == other.TicketID && OffSLADurationHours.Equals(other.OffSLADurationHours) && OffSiteDurationHours.Equals(other.OffSiteDurationHours) && OnSLADurationHours.Equals(other.OnSLADurationHours) && OnSiteDurationHours.Equals(other.OnSiteDurationHours) && TotalDurationHours.Equals(other.TotalDurationHours)); }