# Equals

> Determines whether a hash is equal to this hash.

## Definition

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

## Equals(Hash128)

Determines whether a hash is equal to this hash.

```csharp
public bool Equals(Hash128 obj)
```

### Parameters

**** (\[Hash128]\(/engine/7000.0/script-reference/unity/entities/hash128)): The hash to compare with this hash.

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the two hashes are equal. |

## Equals(Object)

Determines whether some object is equal to this hash.

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

### Parameters

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

### Returns

| Type                                                          | Description                       |
| ------------------------------------------------------------- | --------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the two hashes are equal. |
