## RuntimeHelpers::GetHashCode method


获取任意类型的哈希码。调用 [Object::GetHashCode()](../../../system/object/gethashcode/) 来实现。

```cpp
template<typename T> static int System::Runtime::CompilerServices::RuntimeHelpers::GetHashCode(SmartPtr<T> const &obj)
```


| Parameter | 描述 |
| --- | --- |
| T | 要获取哈希码的类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| obj | SmartPtr\<T\> const\& | [Object](../../../system/object/) 用于获取信息。 |

### ReturnValue

由目标实现计算的哈希码值。

## 另见

* Class [SmartPtr](../../../system/smartptr/)
* Class [RuntimeHelpers](../)
* Namespace [System::Runtime::CompilerServices](../../)
* Library [Aspose.Page for C++](../../../)
