System::Globalization::CompareInfo::GetHashCode 方法

CompareInfo::GetHashCode() const method

C# Object.GetHashCode() 方法的类似实现。支持对自定义对象进行哈希处理。

int System::Globalization::CompareInfo::GetHashCode() const override

ReturnValue

由相应类计算的哈希码值。

另见

CompareInfo::GetHashCode(const String&, CompareOptions) const method

根据指定的比较选项获取字符串哈希码。

virtual int System::Globalization::CompareInfo::GetHashCode(const String &value, CompareOptions options) const
参数类型描述
const String&输入字符串。
optionsCompareOptionsString 比较选项。

ReturnValue

哈希码。

另见