## Unit::Equals method


Determines whether this instance and a specified object, which must also be a [Unit](../) object, have the same value.

```cpp
bool Aspose::BarCode::Generation::Unit::Equals(System::SharedPtr<System::Object> obj) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| obj | System::SharedPtr\<System::Object\> | The [Unit](../) to compare to this instance. |

### ReturnValue

true if obj is a [Unit](../) and its value is the same as this instance; otherwise, false. If obj is null, the method returns false.

## See Also

* Class [Unit](../)
* Namespace [Aspose::BarCode::Generation](../../)
* Library [Aspose.BarCode for C++](../../../)
