## CompareInfo::GetHashCode() const method


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

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


### ReturnValue

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

## 另见

* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
## CompareInfo::GetHashCode(const String\&, CompareOptions) const method


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

```cpp
virtual int System::Globalization::CompareInfo::GetHashCode(const String &value, CompareOptions options) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 值 | const String\& | 输入字符串。 |
| options | CompareOptions | [String](../../../system/string/) 比较选项。 |

### ReturnValue

哈希码。

## 另见

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Font for C++](../../../)
