GetHashCode() public method

public GetHashCode ( ) : int
return int
コード例 #1
0
ファイル: TxOutputKey.cs プロジェクト: ArsenShnurkov/BitSharp
        public TxOutputKey(UInt256 txHash, UInt32 txOutputIndex)
        {
            TxHash = txHash;
            TxOutputIndex = txOutputIndex;

            this.hashCode = txHash.GetHashCode() ^ txOutputIndex.GetHashCode();
        }
コード例 #2
0
ファイル: TxKey.cs プロジェクト: holinov/BitSharp
        public TxKey(UInt256 blockHash, UInt32 txIndex, UInt256 txHash)
        {
            this._blockHash = blockHash;
            this._txIndex = txIndex;
            this._txHash = txHash;

            this.hashCode = blockHash.GetHashCode() ^ txIndex.GetHashCode() ^ txHash.GetHashCode();
        }
コード例 #3
0
ファイル: TxOutputKey.cs プロジェクト: knocte/BitSharp
        public TxOutputKey(UInt256 txHash, UInt32 txOutputIndex)
        {
            this._txHash = txHash;
            this._txOutputIndex = txOutputIndex;

            this.notDefault = true;
            this.hashCode = txHash.GetHashCode() ^ txOutputIndex.GetHashCode();
        }
コード例 #4
0
ファイル: UnspentTx.cs プロジェクト: holinov/BitSharp
        public UnspentTx(UInt256 blockHash, UInt32 txIndex, UInt256 txHash, ImmutableBitArray unspentOutputs)
        {
            this._blockHash = blockHash;
            this._txIndex = txIndex;
            this._txHash = txHash;
            this._unspentOutputs = unspentOutputs;

            this.hashCode = blockHash.GetHashCode() ^ txIndex.GetHashCode() ^ txHash.GetHashCode() ^ unspentOutputs.GetHashCode();
        }
コード例 #5
0
ファイル: OpenGLFramebuffer.cs プロジェクト: turric4n/CKGL
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + id.GetHashCode();
         return(hash);
     }
 }
コード例 #6
0
        public override int GetHashCode()
        {
            int bitsHash = _bits0.GetHashCode();

            if (_bits != null)
            {
                for (int i = 0; i < _bits.Length; i++)
                {
                    bitsHash = Hash.Combine(_bits[i].GetHashCode(), bitsHash);
                }
            }

            return(Hash.Combine(_capacity, bitsHash));
        }
コード例 #7
0
        static StackObject *GetHashCode_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.UInt32 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);

            var result_of_this_method = instance_of_this_method.GetHashCode();

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method;
            return(__ret + 1);
        }
コード例 #8
0
ファイル: Result.cs プロジェクト: shadowninja108/LibHac
 public override int GetHashCode() => _value.GetHashCode();
コード例 #9
0
 public override int GetHashCode()
 {
     return(m_raw.GetHashCode());
 }