# operator ==(ComponentType, ComponentType)

> Evaluates if two component types are equal based on ComponentType.TypeIndex and ComponentType.AccessModeType.

## Definition

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

```csharp
public static bool operator ==(ComponentType lhs, ComponentType rhs)
```

### Parameters

**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The left-hand side**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The right-hand side

### Returns

| Type                                                          | Description                                                                         |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if both their type indices are equal and their access modes are equal. |
