## ObjectExt::GetHashCode method


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

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


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

| Parameter | Type | 描述 |
| --- | --- | --- |
| obj | const T\& | 用于计算哈希码的 [Object](../../object/)。 |

### ReturnValue

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

## 另见

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