本文整理匯總了C#中System.UInt32.GetHashCode方法的典型用法代碼示例。如果您正苦於以下問題:C# UInt32.GetHashCode方法的具體用法?C# UInt32.GetHashCode怎麽用?C# UInt32.GetHashCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.UInt32
的用法示例。
在下文中一共展示了UInt32.GetHashCode方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: TxOutputKey
public TxOutputKey(UInt256 txHash, UInt32 txOutputIndex)
{
TxHash = txHash;
TxOutputIndex = txOutputIndex;
this.hashCode = txHash.GetHashCode() ^ txOutputIndex.GetHashCode();
}
示例2: TxKey
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: TxOutputKey
public TxOutputKey(UInt256 txHash, UInt32 txOutputIndex)
{
this._txHash = txHash;
this._txOutputIndex = txOutputIndex;
this.notDefault = true;
this.hashCode = txHash.GetHashCode() ^ txOutputIndex.GetHashCode();
}
示例4: UnspentTx
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();
}