Exemple #1
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);
    }
Exemple #2
0
 public override int GetHashCode()
 {
     return(FromAccount.GetHashCode() + ToAccount.GetHashCode() + Amount.GetHashCode() + Symbol.GetHashCode() + TransferId.GetHashCode());
 }