## Unit.Equals method

Determines whether this instance and a specified object, which must also be a [`Unit`](../) object, have the same value.

```csharp
public override bool Equals(object obj)
```

| Parameter | Type | Description |
| --- | --- | --- |
| obj | Object | The [`Unit`](../) to compare to this instance. |

### Return Value

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](../../../aspose.barcode.generation/)
* assembly [Aspose.BarCode](../../../)


