public override int GetHashCode() { unchecked { return((CurrencyCode.GetHashCode() * 397) ^ Amount.GetHashCode()); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.currencyCode) { hashcode = (hashcode * 397) + CurrencyCode.GetHashCode(); } if (__isset.currencyName) { hashcode = (hashcode * 397) + CurrencyName.GetHashCode(); } if (__isset.currencySign) { hashcode = (hashcode * 397) + CurrencySign.GetHashCode(); } if (__isset.preferred) { hashcode = (hashcode * 397) + Preferred.GetHashCode(); } if (__isset.coinRate) { hashcode = (hashcode * 397) + CoinRate.GetHashCode(); } if (__isset.creditRate) { hashcode = (hashcode * 397) + CreditRate.GetHashCode(); } } return(hashcode); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (paymentsAccountId_ != null) { hash ^= PaymentsAccountId.GetHashCode(); } if (name_ != null) { hash ^= Name.GetHashCode(); } if (currencyCode_ != null) { hash ^= CurrencyCode.GetHashCode(); } if (paymentsProfileId_ != null) { hash ^= PaymentsProfileId.GetHashCode(); } if (secondaryPaymentsProfileId_ != null) { hash ^= SecondaryPaymentsProfileId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (CurrencyCode.Length != 0) { hash ^= CurrencyCode.GetHashCode(); } if (Price != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Price); } if (OriginalPrice != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OriginalPrice); } if (Cost != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Cost); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (BaseCurrencyCode.Length != 0) { hash ^= BaseCurrencyCode.GetHashCode(); } if (CurrencyCode.Length != 0) { hash ^= CurrencyCode.GetHashCode(); } if (BuyRate != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BuyRate); } if (SellRate != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(SellRate); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void Equality_WhenTrue(string c1, string c2) { CurrencyCode code1 = c1; CurrencyCode code2 = c2; Assert.Equal(code1, code2); Assert.Equal(code1.GetHashCode(), code2.GetHashCode()); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 17; hash = hash * 23 + Amount.GetHashCode(); hash = hash * 23 + CurrencyCode.GetHashCode(); return(hash); } }
protected override int GetHashCodeCore() { unchecked { int hashCode = Value.GetHashCode(); hashCode = (hashCode * 397) ^ CurrencyCode.GetHashCode(); hashCode = (hashCode * 397) ^ CurrencySymbol.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (CurrencyCode != null ? CurrencyCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (UserSettings != null ? UserSettings.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasClientCustomer) { hash ^= ClientCustomer.GetHashCode(); } if (HasHidden) { hash ^= Hidden.GetHashCode(); } if (HasLevel) { hash ^= Level.GetHashCode(); } if (HasTimeZone) { hash ^= TimeZone.GetHashCode(); } if (HasTestAccount) { hash ^= TestAccount.GetHashCode(); } if (HasManager) { hash ^= Manager.GetHashCode(); } if (HasDescriptiveName) { hash ^= DescriptiveName.GetHashCode(); } if (HasCurrencyCode) { hash ^= CurrencyCode.GetHashCode(); } if (HasId) { hash ^= Id.GetHashCode(); } hash ^= appliedLabels_.GetHashCode(); if (Status != global::Google.Ads.GoogleAds.V10.Enums.CustomerStatusEnum.Types.CustomerStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (CurrencyCode == null ? 0 : CurrencyCode.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); return(hash); } }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasClientCustomer) { hash ^= ClientCustomer.GetHashCode(); } if (HasHidden) { hash ^= Hidden.GetHashCode(); } if (HasLevel) { hash ^= Level.GetHashCode(); } if (HasTimeZone) { hash ^= TimeZone.GetHashCode(); } if (HasTestAccount) { hash ^= TestAccount.GetHashCode(); } if (HasManager) { hash ^= Manager.GetHashCode(); } if (HasDescriptiveName) { hash ^= DescriptiveName.GetHashCode(); } if (HasCurrencyCode) { hash ^= CurrencyCode.GetHashCode(); } if (HasId) { hash ^= Id.GetHashCode(); } hash ^= appliedLabels_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (id_ != null) { hash ^= Id.GetHashCode(); } if (descriptiveName_ != null) { hash ^= DescriptiveName.GetHashCode(); } if (currencyCode_ != null) { hash ^= CurrencyCode.GetHashCode(); } if (timeZone_ != null) { hash ^= TimeZone.GetHashCode(); } if (trackingUrlTemplate_ != null) { hash ^= TrackingUrlTemplate.GetHashCode(); } if (finalUrlSuffix_ != null) { hash ^= FinalUrlSuffix.GetHashCode(); } if (autoTaggingEnabled_ != null) { hash ^= AutoTaggingEnabled.GetHashCode(); } if (hasPartnersBadge_ != null) { hash ^= HasPartnersBadge.GetHashCode(); } if (callReportingSetting_ != null) { hash ^= CallReportingSetting.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (clientCustomer_ != null) { hash ^= ClientCustomer.GetHashCode(); } if (hidden_ != null) { hash ^= Hidden.GetHashCode(); } if (level_ != null) { hash ^= Level.GetHashCode(); } if (timeZone_ != null) { hash ^= TimeZone.GetHashCode(); } if (testAccount_ != null) { hash ^= TestAccount.GetHashCode(); } if (manager_ != null) { hash ^= Manager.GetHashCode(); } if (descriptiveName_ != null) { hash ^= DescriptiveName.GetHashCode(); } if (currencyCode_ != null) { hash ^= CurrencyCode.GetHashCode(); } if (id_ != null) { hash ^= Id.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (CurrencyCode != null) { hashCode = hashCode * 59 + CurrencyCode.GetHashCode(); } if (Amount != null) { hashCode = hashCode * 59 + Amount.GetHashCode(); } if (CVC != null) { hashCode = hashCode * 59 + CVC.GetHashCode(); } if (CardNumber != null) { hashCode = hashCode * 59 + CardNumber.GetHashCode(); } if (FullName != null) { hashCode = hashCode * 59 + FullName.GetHashCode(); } if (CardExpiryDate != null) { hashCode = hashCode * 59 + CardExpiryDate.GetHashCode(); } if (RequestDate != null) { hashCode = hashCode * 59 + RequestDate.GetHashCode(); } if (SendingBankName != null) { hashCode = hashCode * 59 + SendingBankName.GetHashCode(); } if (RecievingBankName != null) { hashCode = hashCode * 59 + RecievingBankName.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (CurrencyCode.Length != 0) { hash ^= CurrencyCode.GetHashCode(); } if (CurrencyRate.Length != 0) { hash ^= CurrencyRate.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (currencyCode_ != null) { hash ^= CurrencyCode.GetHashCode(); } if (amountMicros_ != null) { hash ^= AmountMicros.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (CurrencyCode.Length != 0) { hash ^= CurrencyCode.GetHashCode(); } if (Units != 0L) { hash ^= Units.GetHashCode(); } if (Nanos != 0) { hash ^= Nanos.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasPaymentsAccountId) { hash ^= PaymentsAccountId.GetHashCode(); } if (HasName) { hash ^= Name.GetHashCode(); } if (HasCurrencyCode) { hash ^= CurrencyCode.GetHashCode(); } if (HasPaymentsProfileId) { hash ^= PaymentsProfileId.GetHashCode(); } if (HasSecondaryPaymentsProfileId) { hash ^= SecondaryPaymentsProfileId.GetHashCode(); } if (HasPayingManagerCustomer) { hash ^= PayingManagerCustomer.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { var result = 37; unchecked { result = result * 17 + base.GetHashCode(); result = result * 17 + SeqNumber; result = result * 17 + (ColumnFields?.Select(f => f.GetHashCode()).UncheckedSum() ?? 0); result = result * 17 + (int)FieldType; result = result * 17 + FormatTypeId; result = result * 17 + (CurrencyCode?.GetHashCode() ?? 0); result = result * 17 + HasSubtotals.GetHashCode(); result = result * 17 + HasTotals.GetHashCode(); result = result * 17 + (int)TotalsAggregation; result = result * 17 + IsVisible.GetHashCode(); if (ColumnGroupId != null) { result = result * 17 + ColumnGroupId.Value; } } return(result); }
public override int GetHashCode() { return(Code.GetHashCode() ^ NumericCode.GetHashCode() ^ Alpha3Code.GetHashCode() ^ Fips10Code.GetHashCode() ^ Type.GetHashCode() ^ IdStatus.GetHashCode() ^ CurrencyCode.GetHashCode() ^ ParentCode.GetHashCode() ^ ParentGroupCodes.GetHashCode() ^ LanguageCodes.GetHashCode() ^ LanguageAltCodes.GetHashCode()); }
public override int GetHashCode() { return(CurrencyCode.GetHashCode() * 7 + StoreAlias.GetHashCode()); }
/// <summary> /// <see cref="M:System.Object.GetHashCode"/> /// </summary> /// <returns><see cref="M:System.Object.GetHashCode"/></returns> public override int GetHashCode() { return(CurrencyCode.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 (Upc != null) { hashCode = hashCode * 59 + Upc.GetHashCode(); } if (Ean != null) { hashCode = hashCode * 59 + Ean.GetHashCode(); } if (Isbn != null) { hashCode = hashCode * 59 + Isbn.GetHashCode(); } if (Asin != null) { hashCode = hashCode * 59 + Asin.GetHashCode(); } if (Title != null) { hashCode = hashCode * 59 + Title.GetHashCode(); } if (Sku != null) { hashCode = hashCode * 59 + Sku.GetHashCode(); } if (Mpn != null) { hashCode = hashCode * 59 + Mpn.GetHashCode(); } if (PartNumber != null) { hashCode = hashCode * 59 + PartNumber.GetHashCode(); } if (Upcs != null) { hashCode = hashCode * 59 + Upcs.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (Brand != null) { hashCode = hashCode * 59 + Brand.GetHashCode(); } if (Manufacturer != null) { hashCode = hashCode * 59 + Manufacturer.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } hashCode = hashCode * 59 + NewPrice.GetHashCode(); hashCode = hashCode * 59 + UsedPrice.GetHashCode(); if (CurrencyCode != null) { hashCode = hashCode * 59 + CurrencyCode.GetHashCode(); } if (Url != null) { hashCode = hashCode * 59 + Url.GetHashCode(); } if (Features != null) { hashCode = hashCode * 59 + Features.GetHashCode(); } if (Dimensions != null) { hashCode = hashCode * 59 + Dimensions.GetHashCode(); } if (Images != null) { hashCode = hashCode * 59 + Images.GetHashCode(); } if (MatchedItems != null) { hashCode = hashCode * 59 + MatchedItems.GetHashCode(); } if (IsoCountryCodes != null) { hashCode = hashCode * 59 + IsoCountryCodes.GetHashCode(); } if (CompanyName != null) { hashCode = hashCode * 59 + CompanyName.GetHashCode(); } if (CompanyAddress != null) { hashCode = hashCode * 59 + CompanyAddress.GetHashCode(); } if (Categories != null) { hashCode = hashCode * 59 + Categories.GetHashCode(); } if (CategoryHierarchies != null) { hashCode = hashCode * 59 + CategoryHierarchies.GetHashCode(); } return(hashCode); } }