public override int GetHashCode() { int hashCode = 1803674884; hashCode = hashCode * -1521134295 + Id.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name); hashCode = hashCode * -1521134295 + IsIntermediate.GetHashCode(); hashCode = hashCode * -1521134295 + IsDanger.GetHashCode(); hashCode = hashCode * -1521134295 + IsProduction.GetHashCode(); hashCode = hashCode * -1521134295 + IsActive.GetHashCode(); hashCode = hashCode * -1521134295 + IntermediateNrD.GetHashCode(); hashCode = hashCode * -1521134295 + ClpSignalWordId.GetHashCode(); hashCode = hashCode * -1521134295 + ClpMsdsId.GetHashCode(); hashCode = hashCode * -1521134295 + FunctionId.GetHashCode(); hashCode = hashCode * -1521134295 + Price.GetHashCode(); hashCode = hashCode * -1521134295 + CurrencyId.GetHashCode(); hashCode = hashCode * -1521134295 + UnitId.GetHashCode(); hashCode = hashCode * -1521134295 + Density.GetHashCode(); hashCode = hashCode * -1521134295 + Solids.GetHashCode(); hashCode = hashCode * -1521134295 + Ash450.GetHashCode(); hashCode = hashCode * -1521134295 + VOC.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Remarks); hashCode = hashCode * -1521134295 + LoginId.GetHashCode(); hashCode = hashCode * -1521134295 + DateCreated.GetHashCode(); hashCode = hashCode * -1521134295 + DateUpdated.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (ClientToken.Length != 0) { hash ^= ClientToken.GetHashCode(); } if (UnitId != 0UL) { hash ^= UnitId.GetHashCode(); } if (KitId != 0) { hash ^= KitId.GetHashCode(); } if (KitCustomNameId.Length != 0) { hash ^= KitCustomNameId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Serves as a hash function for a <see cref="Army"/> object. /// </summary> /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a /// hash table.</returns> public override int GetHashCode() { unchecked { return(((FactionId != null ? FactionId.GetHashCode() : 0) * 397) ^ (UnitId != null ? UnitId.GetHashCode() : 0) ^ Size.GetHashCode()); } }
public override int GetHashCode() { var hashCode = 1183322437; hashCode = hashCode * -1521134295 + base.GetHashCode(); hashCode = hashCode * -1521134295 + PollingTimeout.GetHashCode(); hashCode = hashCode * -1521134295 + UnitId.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <List <ModbusVariableParams> > .Default.GetHashCode(Variables); return(hashCode); }
public override int GetHashCode() { var hashCode = -510074534; hashCode = hashCode * -1521134295 + MeasurementId.GetHashCode(); hashCode = hashCode * -1521134295 + StationId.GetHashCode(); hashCode = hashCode * -1521134295 + MeasurementTypeId.GetHashCode(); hashCode = hashCode * -1521134295 + UnitId.GetHashCode(); hashCode = hashCode * -1521134295 + Value.GetHashCode(); hashCode = hashCode * -1521134295 + TimesStamp.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 :) if (UnitId != null) { hashCode = hashCode * 59 + UnitId.GetHashCode(); } if (Roles != null) { hashCode = hashCode * 59 + Roles.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (UnitId.Length != 0) { hash ^= UnitId.GetHashCode(); } if (position_ != null) { hash ^= Position.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// Serves as a hash function for a particular type. /// </summary> /// <returns> /// A hash code for the current <see cref="T:System.Object"/>. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { int result = Id; result = (result * 397) ^ (State != null ? State.GetHashCode() : 0); result = (result * 397) ^ StateEnum.GetHashCode(); result = (result * 397) ^ Project; result = (result * 397) ^ Run; result = (result * 397) ^ Clone; result = (result * 397) ^ Gen; result = (result * 397) ^ (Core != null ? Core.GetHashCode() : 0); result = (result * 397) ^ (UnitId != null ? UnitId.GetHashCode() : 0); result = (result * 397) ^ (PercentDone != null ? PercentDone.GetHashCode() : 0); result = (result * 397) ^ TotalFrames; result = (result * 397) ^ FramesDone; result = (result * 397) ^ (Assigned != null ? Assigned.GetHashCode() : 0); result = (result * 397) ^ (AssignedDateTime.HasValue ? AssignedDateTime.Value.GetHashCode() : 0); result = (result * 397) ^ (Timeout != null ? Timeout.GetHashCode() : 0); result = (result * 397) ^ (TimeoutDateTime.HasValue ? TimeoutDateTime.Value.GetHashCode() : 0); result = (result * 397) ^ (Deadline != null ? Deadline.GetHashCode() : 0); result = (result * 397) ^ (DeadlineDateTime.HasValue ? DeadlineDateTime.Value.GetHashCode() : 0); result = (result * 397) ^ (WorkServer != null ? WorkServer.GetHashCode() : 0); result = (result * 397) ^ (WorkServerIPAddress != null ? WorkServerIPAddress.GetHashCode() : 0); result = (result * 397) ^ (CollectionServer != null ? CollectionServer.GetHashCode() : 0); result = (result * 397) ^ (CollectionServerIPAddress != null ? CollectionServerIPAddress.GetHashCode() : 0); result = (result * 397) ^ (WaitingOn != null ? WaitingOn.GetHashCode() : 0); result = (result * 397) ^ Attempts; result = (result * 397) ^ (NextAttempt != null ? NextAttempt.GetHashCode() : 0); result = (result * 397) ^ (NextAttemptTimeSpan.HasValue ? NextAttemptTimeSpan.Value.GetHashCode() : 0); result = (result * 397) ^ Slot; result = (result * 397) ^ (Eta != null ? Eta.GetHashCode() : 0); result = (result * 397) ^ (EtaTimeSpan.HasValue ? EtaTimeSpan.Value.GetHashCode() : 0); result = (result * 397) ^ Ppd.GetHashCode(); result = (result * 397) ^ (Tpf != null ? Tpf.GetHashCode() : 0); result = (result * 397) ^ (TpfTimeSpan.HasValue ? TpfTimeSpan.Value.GetHashCode() : 0); result = (result * 397) ^ BaseCredit.GetHashCode(); result = (result * 397) ^ CreditEstimate.GetHashCode(); result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { return(UnitId.GetHashCode()); }