Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = TotalSpent.GetHashCode();
         hashCode = (hashCode * 397) ^ TotalReceived.GetHashCode();
         hashCode = (hashCode * 397) ^ Balance.GetHashCode();
         hashCode = (hashCode * 397) ^ Txi;
         hashCode = (hashCode * 397) ^ Txo;
         hashCode = (hashCode * 397) ^ TxsCount;
         hashCode = (hashCode * 397) ^ (Legacy != null ? Legacy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Addresses != null ? Addresses.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #2
0
 public bool Equals(GetBtcAddressPayload other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(TotalSpent.Equals(other.TotalSpent) && TotalReceived.Equals(other.TotalReceived) &&
            Balance.Equals(other.Balance) && Txi == other.Txi && Txo == other.Txo &&
            TxsCount == other.TxsCount && string.Equals(Legacy, other.Legacy) &&
            Addresses.SequenceEqual(other.Addresses));
 }