# Equals(void*, void*, in TypeInfo)

> Compares two component types.

## Definition

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

## Equals(void\*, void\*, TypeInfo)

```csharp
public static bool Equals(void* lhsPtr, void* rhsPtr, in FastEquality.TypeInfo typeInfo)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): Pointer to the component on the left-side of the comparison.**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): Pointer to the component on the right-side of the comparison.**** (\[TypeInfo]\(/engine/7000.0/script-reference/unity/entities/fastequality/typeinfo)): TypeInfo to provide the Equals method to invoke.

### Returns

| Type                                                          | Description                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the components are equal. False otherwise. |
