# operator ==(ComponentTypeHash, ComponentTypeHash)

> Checks if two ComponentTypeHash instances are equal

## Definition

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

```csharp
public static bool operator ==(ComponentTypeHash left, ComponentTypeHash right)
```

### Parameters

**** (\[ComponentTypeHash]\(/engine/7000.0/script-reference/unity/entities/componenttypehash)): A ComponentTypeHash to compare**** (\[ComponentTypeHash]\(/engine/7000.0/script-reference/unity/entities/componenttypehash)): A ComponentTypeHash to compare

### Returns

| Type                                                          | Description                           |
| ------------------------------------------------------------- | ------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if `left` and `right` are equal. |
