## ObjectExt::GetHashCode method


Implements [GetHashCode()](./) calls; works on both [Object](../../object/) subclasses and unrelated types.

```cpp
template<typename T> static int System::ObjectExt::GetHashCode(const T &obj)
```


| Parameter | Description |
| --- | --- |
| T | Type to calculate hash code for. |

| Parameter | Type | Description |
| --- | --- | --- |
| obj | const T\& | [Object](../../object/) to calculate hash code for. |

### ReturnValue

Hash code calculated for object passed.

## See Also

* Class [ObjectExt](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
