# Equals

> Compare this instance to another EntityQueryMask for equality.

## Definition

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

## Equals(EntityQueryMask)

Compare this instance to another [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md) for equality.

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

### Parameters

**** (\[EntityQueryMask]\(/engine/7000.0/script-reference/unity/entities/entityquerymask)): The instance to compare against.

### Returns

| Type                                                          | Description                                                                                   |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if both masks refer to the same archetype set within the same world, or false otherwise. |

## Equals(Object)

Compare this instance 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 against.

### Returns

| Type                                                          | Description                                                                                                                                                                               |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if `obj` is an [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md) that refers to the same archetype set within the same world, or false otherwise. |
