public override int GetHashCode() { int hash = 1; if (header_ != null) { hash ^= Header.GetHashCode(); } hash ^= predictionObstacle_.GetHashCode(); if (PerceptionErrorCode != 0) { hash ^= PerceptionErrorCode.GetHashCode(); } if (StartTimestamp != 0D) { hash ^= StartTimestamp.GetHashCode(); } if (EndTimestamp != 0D) { hash ^= EndTimestamp.GetHashCode(); } if (intent_ != null) { hash ^= Intent.GetHashCode(); } if (scenario_ != null) { hash ^= Scenario.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (HasStartTimestamp) { hash ^= StartTimestamp.GetHashCode(); } if (HasEndTimestamp) { hash ^= EndTimestamp.GetHashCode(); } if (HasRegion) { hash ^= Region.GetHashCode(); } if (HasBatchNum) { hash ^= BatchNum.GetHashCode(); } if (HasBatchSize) { hash ^= BatchSize.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Return the HashCode of this object. /// </summary> /// <returns>The HashCode of this object.</returns> public override Int32 GetHashCode() { unchecked { return(ConnectorId.GetHashCode() * 13 ^ IdTag.GetHashCode() * 11 ^ StartTimestamp.GetHashCode() * 7 ^ MeterStart.GetHashCode() * 5 ^ (ReservationId.HasValue ? ReservationId.GetHashCode() : 0)); } }
public override int GetHashCode() { var hash = SRState.GetHashCode() ^ // LastStateChangeTicks.GetHashCode() ^ // NOPE. This changes too often. StartTimestamp.GetHashCode() ^ PercentComplete ^ ElapsedTimeSeconds.GetHashCode() ^ TimeRemainingSeconds.GetHashCode() ^ TotalSteps ^ CurrentStep ^ RetryCounter ^ UncommittedEditCounter ^ ErrorCode ^ PreviousRunTotalMilliseconds.GetHashCode() ^ ProjectCode.GetHashCode(); if (ErrorMessage != null) { hash ^= ErrorMessage.GetHashCode(); } return(hash); }