コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (DepositRoot != null ? DepositRoot.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DepositCount.GetHashCode();
         hashCode = (hashCode * 397) ^ (BlockHash != null ? BlockHash.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 0;

            hash ^= (BlockHash != null) ? BlockHash.GetHashCode() : 0;
            hash ^= (TransactionHash != null) ? TransactionHash.GetHashCode() : 0;
            hash ^= Index;

            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            unchecked
            {
                var baseHashCode = base.GetHashCode();

                var hashCode = baseHashCode;
                hashCode = (hashCode * 397) ^ Index;
                hashCode = (hashCode * 397) ^ (BlockHash != null ? BlockHash.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ BlockHeight.GetHashCode();
                hashCode = (hashCode * 397) ^ (BlockTime != null ? BlockTime.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ Confirmations;
                return(hashCode);
            }
        }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
ファイル: Eth1Data.cs プロジェクト: sounak98/nethermind
 public override int GetHashCode()
 {
     return(BlockHash.GetHashCode());
 }