# EnumEquals<T>(T, T)

> Determines whether specified enums are equal without boxing.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.6/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool EnumEquals<T>(T lhs, T rhs) where T : struct, IConvertible
```

### Parameters

**** (T): The first enum to compare.**** (T): The second enum to compare.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if equal, otherwise false. |
