Array.IStructuralEquatable.GetHashCode(IEqualityComparer) 方法

定义

返回当前实例的哈希代码。Returns a hash code for the current instance.

 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

一个计算当前对象的哈希代码的对象。An object that computes the hash code of the current object.

返回

当前实例的哈希代码。The hash code for the current instance.

实现

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IStructuralEquatable 接口时使用。It can be used only when the Array instance is cast to an IStructuralEquatable interface.

适用于