# Equals

> SystemHandle instances are equal if they refer to the same system instance.

## Definition

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

## Equals(Object)

SystemHandle instances are equal if they refer to the same system instance.

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

### Parameters

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

### Returns

| Type                                                          | Description                                                                                          |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if the obj is a SystemHandle object and both SystemHandles represent the same system instance. |

## Equals(SystemHandle)

Implements IEquatable interface for usage in generic containers. SystemHandle instances are equal if they refer to the same system instance.

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

### Parameters

**** (\[SystemHandle]\(/engine/7000.0/script-reference/unity/entities/systemhandle)): Another SystemHandle instance.

### Returns

| Type                                                          | Description                                                     |
| ------------------------------------------------------------- | --------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if both SystemHandles represent the same system instance. |
