# Equals

> Checks if two objects are EntityGuid instances and if they are equal.

## Definition

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

## Equals(Object)

Checks if two objects are EntityGuid instances and if they are equal.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                                   |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if `obj` is an `EntityGuid` instance that contains the same opaque bits. |

## Equals(EntityGuid)

Checks if two EntityGuid instances are equal.

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

### Parameters

**** (\[EntityGuid]\(/engine/7000.0/script-reference/unity/entities/entityguid)): An EntityGuid to compare with

### Returns

| Type                                                          | Description                                    |
| ------------------------------------------------------------- | ---------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if `other` contains the same opaque bits. |
