示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (ToAddress != null ? ToAddress.GetHashCode() : 0);
         result = (result * 397) ^ (FromAddress != null ? FromAddress.GetHashCode() : 0);
         result = (result * 397) ^ (Subject != null ? Subject.GetHashCode() : 0);
         result = (result * 397) ^ (Body != null ? Body.GetHashCode() : 0);
         result = (result * 397) ^ (AttachmentData != null ? AttachmentData.GetHashCode() : 0);
         return(result);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (FromAddress != null ? FromAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToAddress != null ? ToAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TokenName != null ? TokenName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Symbol != null ? Symbol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TokenType != null ? TokenType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TokenId != null ? TokenId.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = CashoutId.GetHashCode();
                hashCode = (hashCode * 397) ^ ClientId.GetHashCode();
                hashCode = (hashCode * 397) ^ (ToAddress != null ? ToAddress.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Amount.GetHashCode();
                hashCode = (hashCode * 397) ^ IndexInBatch.GetHashCode();
                hashCode = (hashCode * 397) ^ AddedToBatchAt.GetHashCode();

                return(hashCode);
            }
        }
示例#4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OwnerAddress.Length != 0)
            {
                hash ^= OwnerAddress.GetHashCode();
            }
            if (ToAddress.Length != 0)
            {
                hash ^= ToAddress.GetHashCode();
            }
            if (Amount != 0L)
            {
                hash ^= Amount.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Chain != null ? Chain.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TokenTransfers != null ? TokenTransfers.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Status != null ? Status.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Index;
         hashCode = (hashCode * 397) ^ (TransactionHash != null ? TransactionHash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Value.GetHashCode();
         hashCode = (hashCode * 397) ^ (FromAddress != null ? FromAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ToAddress != null ? ToAddress.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Date != null ? Date.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BlockHash != null ? BlockHash.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ BlockNumber.GetHashCode();
         hashCode = (hashCode * 397) ^ Gas.GetHashCode();
         hashCode = (hashCode * 397) ^ GasPrice.GetHashCode();
         hashCode = (hashCode * 397) ^ GasUsed.GetHashCode();
         hashCode = (hashCode * 397) ^ Nonce.GetHashCode();
         hashCode = (hashCode * 397) ^ Confirmations.GetHashCode();
         hashCode = (hashCode * 397) ^ (Input != null ? Input.GetHashCode() : 0);
         return(hashCode);
     }
 }