# Equals

> Compare to another object for equality.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## Equals(Object)

Compare to another object for equality.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare

### Returns

| Type                                                          | Description                                                        |
| ------------------------------------------------------------- | ------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if `obj` is an equivalent query description, or false it not. |

## Equals(EntityQueryDesc)

Compare to another instance for equality.

```csharp
public bool Equals(EntityQueryDesc other)
```

### Parameters

**** (\[EntityQueryDesc]\(/engine/7000.0/script-reference/unity/entities/entityquerydesc)): The other instance to compare.

### Returns

| Type                                                          | Description                                           |
| ------------------------------------------------------------- | ----------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two instances are equal, or false if not. |
