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
ParameterType描述
valueconst String&输入字符串。
optionsCompareOptionsString 比较选项。

ReturnValue

哈希码。

另见