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); }
/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Currency != null) { hashCode = hashCode * 59 + Currency.GetHashCode(); } if (CurrencySign != null) { hashCode = hashCode * 59 + CurrencySign.GetHashCode(); } if (Config != null) { hashCode = hashCode * 59 + Config.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { int hashcode = 157; unchecked { if (__isset.payDate) { hashcode = (hashcode * 397) + PayDate.GetHashCode(); } if (__isset.coinBalance) { hashcode = (hashcode * 397) + CoinBalance.GetHashCode(); } if (__isset.coin) { hashcode = (hashcode * 397) + Coin.GetHashCode(); } if (__isset.price) { hashcode = (hashcode * 397) + Price.GetHashCode(); } if (__isset.title) { hashcode = (hashcode * 397) + Title.GetHashCode(); } if (__isset.refund) { hashcode = (hashcode * 397) + Refund.GetHashCode(); } if (__isset.paySeq) { hashcode = (hashcode * 397) + PaySeq.GetHashCode(); } if (__isset.currency) { hashcode = (hashcode * 397) + Currency.GetHashCode(); } if (__isset.currencySign) { hashcode = (hashcode * 397) + CurrencySign.GetHashCode(); } if (__isset.displayPrice) { hashcode = (hashcode * 397) + DisplayPrice.GetHashCode(); } if (__isset.payload) { hashcode = (hashcode * 397) + Payload.GetHashCode(); } if (__isset.channelId) { hashcode = (hashcode * 397) + ChannelId.GetHashCode(); } } return(hashcode); }