public override int GetHashCode() { return(Ammount.GetHashCode() ^ Type.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 (CoinType != null) { hashCode = hashCode * 59 + CoinType.GetHashCode(); } if (WalletName != null) { hashCode = hashCode * 59 + WalletName.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Symbol != null) { hashCode = hashCode * 59 + Symbol.GetHashCode(); } if (WalletSymbol != null) { hashCode = hashCode * 59 + WalletSymbol.GetHashCode(); } if (WalletType != null) { hashCode = hashCode * 59 + WalletType.GetHashCode(); } if (TransactionFee != null) { hashCode = hashCode * 59 + TransactionFee.GetHashCode(); } if (Precision != null) { hashCode = hashCode * 59 + Precision.GetHashCode(); } if (BackingCoinType != null) { hashCode = hashCode * 59 + BackingCoinType.GetHashCode(); } if (SupportsOutputMemos != null) { hashCode = hashCode * 59 + SupportsOutputMemos.GetHashCode(); } if (Restricted != null) { hashCode = hashCode * 59 + Restricted.GetHashCode(); } if (Authorized != null) { hashCode = hashCode * 59 + Authorized.GetHashCode(); } if (NotAuthorizedReasons != null) { hashCode = hashCode * 59 + NotAuthorizedReasons.GetHashCode(); } return(hashCode); } }