---
title: "System::Collections::Generic::ObjectEqualityComparer class"
url: "https://reference.aspose.com/pdf/cpp/system.collections.generic/objectequalitycomparer/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Collections::Generic::ObjectEqualityComparer class. Provides a default implementation of the System::Collections::Generic::EqualityComparer abstract class in C++."
---

## ObjectEqualityComparer class


Provides a default implementation of the [System::Collections::Generic::EqualityComparer<T>](../equalitycomparer/) abstract class.

```cpp
template<typename T>class ObjectEqualityComparer : public System::Collections::Generic::EqualityComparer<T>
```


| Parameter | Description |
| --- | --- |
| The | type of objects to compare |
## Methods

| Method | Description |
| --- | --- |
| [Equals](./equals/)(T, T) const override | RTTI information. |
| [GetHashCode](./gethashcode/)(T) const override | Gets hash code for some object. |

## See Also

* Class [EqualityComparer](../equalitycomparer/)
* Namespace [System::Collections::Generic](../)
* Library [Aspose.PDF for C++](../../)
