## ObjectExt::GetHashCode method


实现 [GetHashCode()](./) 调用；在 [Object](../../object/) 子类和不相关的类型上均可工作。

```cpp
template<typename T> static int System::ObjectExt::GetHashCode(const T &obj)
```


| 参数 | 描述 |
| --- | --- |
| T | 用于计算哈希码的类型。 |

| 参数 | 类型 | 描述 |
| --- | --- | --- |
| obj | const T\& | [Object](../../object/) 用于计算哈希码。 |

### ReturnValue

为传入的对象计算的哈希码。

## 另见

* Class [ObjectExt](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
