---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.barcoderecognition/basedecodetype/equals/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. Returns a value indicating whether this instance is equal to a specified SingleDecodeType value in C++."
---

## BaseDecodeType::Equals(System::SharedPtr\<SingleDecodeType\>) method


Returns a value indicating whether this instance is equal to a specified [SingleDecodeType](../../singledecodetype/) value.

```cpp
virtual bool Aspose::BarCode::BarCodeRecognition::BaseDecodeType::Equals(System::SharedPtr<SingleDecodeType> other)
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | System::SharedPtr\<SingleDecodeType\> | An [SingleDecodeType](../../singledecodetype/) value to compare to this instance. |

### ReturnValue

**true** if obj has the same value as this instance; otherwise, **false**.

## See Also

* Class [SingleDecodeType](../../singledecodetype/)
* Class [BaseDecodeType](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## BaseDecodeType::Equals(System::SharedPtr\<MultiDecodeType\>) method


Returns a value indicating whether this instance is equal to a specified [MultiDecodeType](../../multidecodetype/) value.

```cpp
virtual bool Aspose::BarCode::BarCodeRecognition::BaseDecodeType::Equals(System::SharedPtr<MultiDecodeType> other)
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | System::SharedPtr\<MultiDecodeType\> | An [MultiDecodeType](../../multidecodetype/) value to compare to this instance. |

### ReturnValue

**true** if obj has the same value as this instance; otherwise, **false**.

## See Also

* Class [MultiDecodeType](../../multidecodetype/)
* Class [BaseDecodeType](../)
* Namespace [Aspose::BarCode::BarCodeRecognition](../../)
* Library [Aspose.BarCode for C++](../../../)
## BaseDecodeType::Equals(System::SharedPtr\<BaseDecodeType\>) method


Returns a value indicating whether this instance is equal to a specified [BaseDecodeType](../) value.

```cpp
bool Aspose::BarCode::BarCodeRecognition::BaseDecodeType::Equals(System::SharedPtr<BaseDecodeType> other) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | System::SharedPtr\<BaseDecodeType\> | An [BaseDecodeType](../) value to compare to this instance. |

### ReturnValue

**true** if obj has the same value as this instance; otherwise, **false**.

## See Also

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