Ejemplo n.º 1
0
 /// <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 (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Identification != null)
         {
             hashCode = hashCode * 59 + Identification.GetHashCode();
         }
         if (RewardsProgram != null)
         {
             hashCode = hashCode * 59 + RewardsProgram.GetHashCode();
         }
         if (Fees != null)
         {
             hashCode = hashCode * 59 + Fees.GetHashCode();
         }
         if (Interest != null)
         {
             hashCode = hashCode * 59 + Interest.GetHashCode();
         }
         if (TermsConditions != null)
         {
             hashCode = hashCode * 59 + TermsConditions.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Blockchain.Length != 0)
        {
            hash ^= Blockchain.GetHashCode();
        }
        if (Address.Length != 0)
        {
            hash ^= Address.GetHashCode();
        }
        if (Amount.Length != 0)
        {
            hash ^= Amount.GetHashCode();
        }
        if (Interest.Length != 0)
        {
            hash ^= Interest.GetHashCode();
        }
        if (Maturity.Length != 0)
        {
            hash ^= Maturity.GetHashCode();
        }
        if (Fee.Length != 0)
        {
            hash ^= Fee.GetHashCode();
        }
        if (Expiration != 0UL)
        {
            hash ^= Expiration.GetHashCode();
        }
        if (Block.Length != 0)
        {
            hash ^= Block.GetHashCode();
        }
        if (Sighash.Length != 0)
        {
            hash ^= Sighash.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Ejemplo n.º 3
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Blockchain.Length != 0)
        {
            hash ^= Blockchain.GetHashCode();
        }
        if (Amount.Length != 0)
        {
            hash ^= Amount.GetHashCode();
        }
        if (Interest.Length != 0)
        {
            hash ^= Interest.GetHashCode();
        }
        if (CollateralBlockchain.Length != 0)
        {
            hash ^= CollateralBlockchain.GetHashCode();
        }
        if (Collateral.Length != 0)
        {
            hash ^= Collateral.GetHashCode();
        }
        if (Fee.Length != 0)
        {
            hash ^= Fee.GetHashCode();
        }
        if (Expiration != 0UL)
        {
            hash ^= Expiration.GetHashCode();
        }
        if (TransferId.Length != 0)
        {
            hash ^= TransferId.GetHashCode();
        }
        if (Sighash.Length != 0)
        {
            hash ^= Sighash.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }