# Equals

> SystemTypeIndex instances are equal if they refer to the same system type.

## Definition

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

## Equals(Object)

[SystemTypeIndex](/engine/7000.0/script-reference/unity/entities/systemtypeindex.md) instances are equal if they refer to the same system type.

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

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare to this [SystemTypeIndex](/engine/7000.0/script-reference/unity/entities/systemtypeindex.md).

### Returns

| Type                                                          | Description                                                                                                                                                                                                                |
| ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if the compare parameter contains a [TypeIndex](/engine/7000.0/script-reference/unity/entities/typeindex.md) object equal to this [TypeIndex](/engine/7000.0/script-reference/unity/entities/typeindex.md) instance. |

## Equals(SystemTypeIndex)

[SystemTypeIndex](/engine/7000.0/script-reference/unity/entities/systemtypeindex.md) instances are equal if they refer to the same system type.

```csharp
public bool Equals(SystemTypeIndex typeIndex)
```

### Parameters

**** (\[SystemTypeIndex]\(/engine/7000.0/script-reference/unity/entities/systemtypeindex)): The other [SystemTypeIndex](/engine/7000.0/script-reference/unity/entities/systemtypeindex.md).

### Returns

| Type                                                          | Description                                                                                                            |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if the [SystemTypeIndex](/engine/7000.0/script-reference/unity/entities/systemtypeindex.md) instances are equal. |
