Tuple<T1,T2,T3,T4,T5>.IStructuralEquatable.GetHashCode(IEqualityComparer) Tuple<T1,T2,T3,T4,T5>.IStructuralEquatable.GetHashCode(IEqualityComparer) Tuple<T1,T2,T3,T4,T5>.IStructuralEquatable.GetHashCode(IEqualityComparer) Method

定義

使用指定的計算方法,計算目前 Tuple<T1,T2,T3,T4,T5> 物件的雜湊碼。Calculates the hash code for the current Tuple<T1,T2,T3,T4,T5> object by using a specified computation method.

 virtual int System.Collections.IStructuralEquatable.GetHashCode(System::Collections::IEqualityComparer ^ comparer) = System::Collections::IStructuralEquatable::GetHashCode;
int IStructuralEquatable.GetHashCode (System.Collections.IEqualityComparer comparer);
Function GetHashCode (comparer As IEqualityComparer) As Integer Implements IStructuralEquatable.GetHashCode

參數

comparer
IEqualityComparer IEqualityComparer IEqualityComparer

GetHashCode(Object) 方法可以計算目前 Tuple<T1,T2,T3,T4,T5> 物件之雜湊碼的物件。An object whose GetHashCode(Object) method calculates the hash code of the current Tuple<T1,T2,T3,T4,T5> object.

傳回

32 位元帶正負號的整數雜湊碼。A 32-bit signed integer hash code.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 Tuple<T1,T2,T3,T4,T5> 執行個體轉換成 IStructuralEquatable 介面時,才能使用這個成員。It can be used only when the Tuple<T1,T2,T3,T4,T5> instance is cast to an IStructuralEquatable interface.

方法只會包裝對comparer物件的IEqualityComparer.GetHashCode實作為呼叫。The method simply wraps a call to the comparer object's IEqualityComparer.GetHashCode implementation.

用來計算雜湊碼的演算法應該會針對視為相等的兩個Tuple<T1,T2,T3,T4,T5>物件傳回相同的雜湊碼。The algorithm used to compute the hash code should return the same hash code for two Tuple<T1,T2,T3,T4,T5> objects that are considered to be equal.

適用於