# Equals

> Two ArchetypeChunk instances are equal if they reference the same block of chunk memory.

## Definition

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

## Equals(Object)

Two ArchetypeChunk instances are equal if they reference the same block of chunk memory.

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

### 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 `compare` is an `ArchetypeChunk` instance that references the same memory, or both contain null memory references; otherwise false. |

## Equals(ArchetypeChunk)

Two ArchetypeChunk instances are equal if they reference the same block of chunk and entity component store memory.

```csharp
public bool Equals(ArchetypeChunk archetypeChunk)
```

### Parameters

**** (\[ArchetypeChunk]\(/engine/7000.0/script-reference/unity/entities/archetypechunk)): Another ArchetypeChunk instance

### Returns

| Type                                                          | Description                                                                                              |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if both ArchetypeChunk instances reference the same memory or both contain null memory references. |
