# FastEquality.TypeInfo

> Type holding one component's Equals and GetHashCode implementations as well as the size of the underlying unmanaged component type

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct FastEquality.TypeInfo : IDisposable
```

## Static Properties

| Property                                                                             | Description                              |
| ------------------------------------------------------------------------------------ | ---------------------------------------- |
| [Null](/engine/7000.0/script-reference/unity/entities/fastequality/typeinfo/null.md) | Represents an invalid TypeInfo instance. |

## Methods

| Method                                                                                     | Description               |
| ------------------------------------------------------------------------------------------ | ------------------------- |
| [Dispose](/engine/7000.0/script-reference/unity/entities/fastequality/typeinfo/dispose.md) | Releases the layout data. |

## Delegates

| Delegate                                                                                                                                  | Description                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [FastEquality.TypeInfo.CompareEqualDelegate](/engine/7000.0/script-reference/unity/entities/fastequality/typeinfocompareequaldelegate.md) | Equals method delegate for comparing two component instances whose type is not known at compile time. |
| [FastEquality.TypeInfo.GetHashCodeDelegate](/engine/7000.0/script-reference/unity/entities/fastequality/typeinfogethashcodedelegate.md)   | GetHashCode method delegate for hashing a component whose type is not known at compile time.          |
