# Equals

> Returns true if this list and another list are equal.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Equals(FixedList32Bytes\<T>)

Returns true if this list and another list are equal.

```csharp
public bool Equals(FixedList32Bytes<T> other)
```

### Parameters

**** (\[FixedList32Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist32bytes1)): The list to compare for equality.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two lists are equal. |

### Remarks

Two lists are equal if their length and bytes are equal.

## Equals(FixedList64Bytes\<T>)

Returns true if this list and another list are equal.

```csharp
public bool Equals(FixedList64Bytes<T> other)
```

### Parameters

**** (\[FixedList64Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1)): The list to compare for equality.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two lists are equal. |

### Remarks

Two lists are equal if their length and bytes are equal.

## Equals(FixedList128Bytes\<T>)

Returns true if this list and another list are equal.

```csharp
public bool Equals(FixedList128Bytes<T> other)
```

### Parameters

**** (\[FixedList128Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist128bytes1)): The list to compare for equality.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two lists are equal. |

### Remarks

Two lists are equal if their length and bytes are equal.

## Equals(FixedList512Bytes\<T>)

Returns true if this list and another list are equal.

```csharp
public bool Equals(FixedList512Bytes<T> other)
```

### Parameters

**** (\[FixedList512Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist512bytes1)): The list to compare for equality.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two lists are equal. |

### Remarks

Two lists are equal if their length and bytes are equal.

## Equals(FixedList4096Bytes\<T>)

Returns true if this list and another list are equal.

```csharp
public bool Equals(FixedList4096Bytes<T> other)
```

### Parameters

**** (\[FixedList4096Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist4096bytes1)): The list to compare for equality.

### Returns

| Type                                                          | Description                      |
| ------------------------------------------------------------- | -------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the two lists are equal. |

### Remarks

Two lists are equal if their length and bytes are equal.

## Equals(Object)

Returns true if the list is equal to an object.

```csharp
[ExcludeFromBurstCompatTesting("Takes managed object")]
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): An object to compare for equality.

### Returns

| Type                                                          | Description                              |
| ------------------------------------------------------------- | ---------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the list is equal to the object. |

### Remarks

Two lists are equal if their length and bytes are equal.

A FixedList"N"\\\<T\\> can only be equal to another FixedList"N"\\\<T\\> with the same "N" and T.
