# operator ==

> Returns true if a FixedString64Bytes and another string are equal.

## Definition

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

## operator ==(FixedString64Bytes, FixedString32Bytes)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
public static bool operator ==(in FixedString64Bytes a, in FixedString32Bytes b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[FixedString32Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring32bytes)): A FixedString32Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator ==(FixedString64Bytes, FixedString64Bytes)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
public static bool operator ==(in FixedString64Bytes a, in FixedString64Bytes b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator ==(FixedString64Bytes, FixedString128Bytes)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
public static bool operator ==(in FixedString64Bytes a, in FixedString128Bytes b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[FixedString128Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring128bytes)): A FixedString128Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator ==(FixedString64Bytes, FixedString512Bytes)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
public static bool operator ==(in FixedString64Bytes a, in FixedString512Bytes b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[FixedString512Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring512bytes)): A FixedString512Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator ==(FixedString64Bytes, FixedString4096Bytes)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
public static bool operator ==(in FixedString64Bytes a, in FixedString4096Bytes b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[FixedString4096Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring4096bytes)): A FixedString4096Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.

## operator ==(FixedString64Bytes, string)

Returns true if a FixedString64Bytes and another string are equal.

```csharp
[ExcludeFromBurstCompatTesting("Takes managed string")]
public static bool operator ==(in FixedString64Bytes a, string b)
```

### Parameters

**** (\[FixedString64Bytes]\(/engine/6000.7/script-reference/unity/collections/fixedstring64bytes)): A FixedString64Bytes to compare for equality.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A FixedString32Bytes to compare for equality.

### Returns

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

### Remarks

Two strings are equal if they have equal length and all their characters match.
