public override int GetHashCode() { int hash = 1; if (Guid.Length != 0) { hash ^= Guid.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (SerialNumber.Length != 0) { hash ^= SerialNumber.GetHashCode(); } if (Type != global::WarehouseGrpc.EquipmentType.Rtv) { hash ^= Type.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Path.Length != 0) { hash ^= Path.GetHashCode(); } if (SerialNumber.Length != 0) { hash ^= SerialNumber.GetHashCode(); } hash ^= subjectAltNames_.GetHashCode(); if (DaysUntilExpiration != 0UL) { hash ^= DaysUntilExpiration.GetHashCode(); } if (validFrom_ != null) { hash ^= ValidFrom.GetHashCode(); } if (expirationTime_ != null) { hash ^= ExpirationTime.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <summary> /// TODO: Update Comments /// /// </summary> /// <returns> /// A int value... /// </returns> public override int GetHashCode() { unchecked { return((NetworkAddress.GetHashCode() * 397) ^ SerialNumber.GetHashCode()); } }
public override int GetHashCode() { int hash = 1; if (Guid.Length != 0) { hash ^= Guid.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (SerialNumber.Length != 0) { hash ^= SerialNumber.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hashSerialNumber = SerialNumber.GetHashCode(); int hashOrderItemID = OrderItemID.GetHashCode(); return(hashSerialNumber ^ hashOrderItemID); }
public override int GetHashCode() { int hashProductID = ProductID.GetHashCode(); int hashSerialNumber = SerialNumber.GetHashCode(); return(hashProductID ^ hashSerialNumber); }
/// <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 (DistrictName != null) { hash = hash * 59 + DistrictName.GetHashCode(); } if (SerialNumber != null) { hash = hash * 59 + SerialNumber.GetHashCode(); } if (DuplicateEquipment != null) { hash = hash * 59 + DuplicateEquipment.GetHashCode(); } return(hash); } }
public override int GetHashCode() { return(ElementNumber.GetHashCode() ^ SerialNumber.GetHashCode() ^ DmxRangeMin.GetHashCode() ^ DmxRangeMax.GetHashCode() ^ (Name?.GetHashCode() ?? 0)); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer that is the hash code for this instance. /// </returns> public override int GetHashCode() { return(Id.GetHashCode() ^ Flags.GetHashCode() ^ SerialNumber.GetHashCode() ^ Type.GetHashCode() ^ LocationId.GetHashCode() ^ Description.GetHashCode()); }
/// <summary> /// Returns the hash code for the CRL entry as an integer. /// </summary> /// <returns>The hash code for the CRL entry as an integer.</returns> public override Int32 GetHashCode() { unchecked { Int32 hashCode = (SerialNumber != null ? SerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ RevocationDate.GetHashCode(); hashCode = (hashCode * 397) ^ ReasonCode; return(hashCode); } }
public override int GetHashCode() { var result = (Model == null ? 0 : Model.GetHashCode()); result += 17 * (SerialNumber == null ? 0 : SerialNumber.GetHashCode()); result += 17 * 17 * Status.GetHashCode(); result += PriceBought == null ? 0 : 17 * 17 * 17 * (int)Math.Min(int.MaxValue, PriceBought.Value); return(result); }
/// <summary> /// Returns the hash code for the CRL entry as an integer. /// </summary> /// <returns>The hash code for the CRL entry as an integer.</returns> public override Int32 GetHashCode() { unchecked { Int32 hashCode = SerialNumber?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ RevocationDate.GetHashCode(); hashCode = (hashCode * 397) ^ ReasonCode; return(hashCode); } }
public override int GetHashCode() { // Generated by IntelliJ int result = Manufacturer.GetHashCode(); result = 31 * result + ModelNumber.GetHashCode(); result = 31 * result + SerialNumber.GetHashCode(); result = 31 * result + FirmwareRevision.GetHashCode(); result = 31 * result + HardwareRevision.GetHashCode(); return(result); }
public override int GetHashCode() { return(base.GetHashCode() ^ IsSuccess.GetHashCode() ^ State.GetHashCode() ^ Manufacturer.GetHashCode() ^ ModelName.GetHashCode() ^ SerialNumber.GetHashCode() ^ SignalQuality.GetHashCode() ^ Imsi.GetHashCode() ^ Imei.GetHashCode() ^ OperatorName.GetHashCode()); }
public override int GetHashCode() { unchecked { int result = (int)ID; result = (result * 397) ^ PriceIn.GetHashCode(); result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0); result = (result * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0); result = (result * 397) ^ (ExpirationDate.HasValue ? ExpirationDate.Value.GetHashCode() : 0); result = (result * 397) ^ (ProductionDate.HasValue ? ProductionDate.Value.GetHashCode() : 0); result = (result * 397) ^ (Location != null ? Location.GetHashCode() : 0); return(result); } }
/// <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 (Model != null) { hashCode = hashCode * 59 + Model.GetHashCode(); } if (Year != null) { hashCode = hashCode * 59 + Year.GetHashCode(); } if (Price != null) { hashCode = hashCode * 59 + Price.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (SoldDateUtc != null) { hashCode = hashCode * 59 + SoldDateUtc.GetHashCode(); } if (Comment != null) { hashCode = hashCode * 59 + Comment.GetHashCode(); } if (Transmission != null) { hashCode = hashCode * 59 + Transmission.GetHashCode(); } if (Motor != null) { hashCode = hashCode * 59 + Motor.GetHashCode(); } if (GarageId != null) { hashCode = hashCode * 59 + GarageId.GetHashCode(); } if (SellerId != null) { hashCode = hashCode * 59 + SellerId.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 (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (FirmwareVersion != null) { hashCode = hashCode * 59 + FirmwareVersion.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ModelId.GetHashCode(); hashCode = (hashCode * 397) ^ TypeId; hashCode = (hashCode * 397) ^ ManufactuerId.GetHashCode(); hashCode = (hashCode * 397) ^ RefrigerantId.GetHashCode(); hashCode = (hashCode * 397) ^ LightingId.GetHashCode(); hashCode = (hashCode * 397) ^ IsDismounted.GetHashCode(); hashCode = (hashCode * 397) ^ CoverId.GetHashCode(); hashCode = (hashCode * 397) ^ StateId; hashCode = (hashCode * 397) ^ ShopId.GetHashCode(); return(hashCode); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { // As obtained from the Jon Skeet answer to: // http://stackoverflow.com/questions/263400/what-is-the-best-algorithm-for-an-overridden-system-object-gethashcode // And adapted towards the Modified Bernstein (shown here: http://eternallyconfuzzled.com/tuts/algorithms/jsw_tut_hashing.aspx) // // Overflow is fine, just wrap unchecked { // Pick a random prime number int hash = 17; // Mash the hash together with yet another random prime number hash = (hash * 23) ^ SerialNumber.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = (ThumbPrint != null ? ThumbPrint.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Issuer != null ? Issuer.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Subject != null ? Subject.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ValidFrom.GetHashCode(); hashCode = (hashCode * 397) ^ ValidTo.GetHashCode(); hashCode = (hashCode * 397) ^ (KeyAlgoritm != null ? KeyAlgoritm.GetHashCode() : 0); hashCode = (hashCode * 397) ^ KeyLength; hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SubjectAlternativeName != null ? SubjectAlternativeName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CommonName != null ? CommonName.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Created.GetHashCode(); hashCode = (hashCode * 397) ^ (Office != null ? Office.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RegistrationNumber != null ? RegistrationNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographMake != null ? TachographMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographModel != null ? TachographModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ InspectionDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Technician != null ? Technician.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CustomerContact != null ? CustomerContact.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DepotName != null ? DepotName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CompanyName != null ? CompanyName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ UserId; hashCode = (hashCode * 397) ^ Uploaded.GetHashCode(); return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked { var hashCode = AccountName != null?AccountName.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (IdentitySecret != null ? IdentitySecret.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RevocationCode != null ? RevocationCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Secret1 != null ? Secret1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ServerTime.GetHashCode(); hashCode = (hashCode * 397) ^ (SharedSecret != null ? SharedSecret.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Status; hashCode = (hashCode * 397) ^ (SteamGuardScheme != null ? SteamGuardScheme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SteamId.GetHashCode(); hashCode = (hashCode * 397) ^ (TokenGID != null ? TokenGID.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Uri != null ? Uri.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { var hashCode = 1454258597; hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(FileFormat); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(StationName); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataLoggerType); hashCode = hashCode * -1521134295 + SerialNumber.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(OperatingSystemVersion); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DataloggerProgramName); hashCode = hashCode * -1521134295 + DataloggerProgramSignature.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(TableName); hashCode = hashCode * -1521134295 + EqualityComparer <List <Variable> > .Default.GetHashCode(Variables); 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 (Status != null) { hashCode = hashCode * 59 + Status.GetHashCode(); } if (Certificates != null) { hashCode = hashCode * 59 + Certificates.GetHashCode(); } if (IssuerDN != null) { hashCode = hashCode * 59 + IssuerDN.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (SubjectDN != null) { hashCode = hashCode * 59 + SubjectDN.GetHashCode(); } if (ValidFrom != null) { hashCode = hashCode * 59 + ValidFrom.GetHashCode(); } if (ValidTo != null) { hashCode = hashCode * 59 + ValidTo.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 (SearchString != null) { hashCode = hashCode * 59 + SearchString.GetHashCode(); } if (SortingColumn != null) { hashCode = hashCode * 59 + SortingColumn.GetHashCode(); } if (TagId != null) { hashCode = hashCode * 59 + TagId.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (Latitude != null) { hashCode = hashCode * 59 + Latitude.GetHashCode(); } if (Longitude != null) { hashCode = hashCode * 59 + Longitude.GetHashCode(); } if (AssetClass != null) { hashCode = hashCode * 59 + AssetClass.GetHashCode(); } if (LastModified != null) { hashCode = hashCode * 59 + LastModified.GetHashCode(); } if (Created != null) { hashCode = hashCode * 59 + Created.GetHashCode(); } if (Creator != null) { hashCode = hashCode * 59 + Creator.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } if (InventoryNumber != null) { hashCode = hashCode * 59 + InventoryNumber.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (Location != null) { hashCode = hashCode * 59 + Location.GetHashCode(); } if (Room != null) { hashCode = hashCode * 59 + Room.GetHashCode(); } if (CostCenter != null) { hashCode = hashCode * 59 + CostCenter.GetHashCode(); } if (CapitalisationDate != null) { hashCode = hashCode * 59 + CapitalisationDate.GetHashCode(); } if (LastInventoryDate != null) { hashCode = hashCode * 59 + LastInventoryDate.GetHashCode(); } if (AcquisitionValue != null) { hashCode = hashCode * 59 + AcquisitionValue.GetHashCode(); } if (AssetSuperNumber != null) { hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode(); } if (Vendor != null) { hashCode = hashCode * 59 + Vendor.GetHashCode(); } if (TypeName != null) { hashCode = hashCode * 59 + TypeName.GetHashCode(); } if (Plant != null) { hashCode = hashCode * 59 + Plant.GetHashCode(); } if (Quantity != null) { hashCode = hashCode * 59 + Quantity.GetHashCode(); } if (Unit != null) { hashCode = hashCode * 59 + Unit.GetHashCode(); } if (Untaggable != null) { hashCode = hashCode * 59 + Untaggable.GetHashCode(); } if (Untagged != null) { hashCode = hashCode * 59 + Untagged.GetHashCode(); } if (Page != null) { hashCode = hashCode * 59 + Page.GetHashCode(); } if (PageSize != null) { hashCode = hashCode * 59 + PageSize.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashSerialNumber = SerialNumber.GetHashCode(); return(hashSerialNumber); }
public override int GetHashCode() { return(SerialNumber != null ? SerialNumber.GetHashCode() : 0); }
public override int GetHashCode() { return(SerialNumber.GetHashCode()); }
/// <summary> /// Return the hash code for the Instrument. /// </summary> /// <returns>The hash code for the Instrument.</returns> public override int GetHashCode() => SerialNumber.GetHashCode();
/// <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 (InventoryNumber != null) { hashCode = hashCode * 59 + InventoryNumber.GetHashCode(); } if (SerialNumber != null) { hashCode = hashCode * 59 + SerialNumber.GetHashCode(); } if (Location != null) { hashCode = hashCode * 59 + Location.GetHashCode(); } if (Room != null) { hashCode = hashCode * 59 + Room.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (CostCenter != null) { hashCode = hashCode * 59 + CostCenter.GetHashCode(); } if (CapitalisationDate != null) { hashCode = hashCode * 59 + CapitalisationDate.GetHashCode(); } if (LastInventoryDate != null) { hashCode = hashCode * 59 + LastInventoryDate.GetHashCode(); } if (AcquisitionValue != null) { hashCode = hashCode * 59 + AcquisitionValue.GetHashCode(); } if (AssetSuperNumber != null) { hashCode = hashCode * 59 + AssetSuperNumber.GetHashCode(); } if (Vendor != null) { hashCode = hashCode * 59 + Vendor.GetHashCode(); } if (TypeName != null) { hashCode = hashCode * 59 + TypeName.GetHashCode(); } if (Plant != null) { hashCode = hashCode * 59 + Plant.GetHashCode(); } if (AssetClass != null) { hashCode = hashCode * 59 + AssetClass.GetHashCode(); } if (Quantity != null) { hashCode = hashCode * 59 + Quantity.GetHashCode(); } if (Unit != null) { hashCode = hashCode * 59 + Unit.GetHashCode(); } if (DeactivatedOn != null) { hashCode = hashCode * 59 + DeactivatedOn.GetHashCode(); } if (IsDeactivated != null) { hashCode = hashCode * 59 + IsDeactivated.GetHashCode(); } if (CompanyCodeCurrency != null) { hashCode = hashCode * 59 + CompanyCodeCurrency.GetHashCode(); } if (AssetNumber != null) { hashCode = hashCode * 59 + AssetNumber.GetHashCode(); } if (SubNumber != null) { hashCode = hashCode * 59 + SubNumber.GetHashCode(); } if (CompanyCode != null) { hashCode = hashCode * 59 + CompanyCode.GetHashCode(); } return(hashCode); } }