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

定义

使用指定的计算方法计算当前 Tuple<T1,T2,T3> 对象的哈希代码。Calculates the hash code for the current Tuple<T1,T2,T3> 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> 对象的哈希代码。An object whose GetHashCode(Object) method calculates the hash code of the current Tuple<T1,T2,T3> object.

返回

32 位有符号整数哈希代码。A 32-bit signed integer hash code.

实现

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 Tuple<T1,T2,T3> 实例被强制转换为 IStructuralEquatable 接口时使用。It can be used only when the Tuple<T1,T2,T3> 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>对象返回相同的哈希代码。The algorithm used to compute the hash code should return the same hash code for two Tuple<T1,T2,T3> objects that are considered to be equal.

适用于