# Equals(UxmlTypeRestriction)

> Indicates whether the current UxmlEnumeration object is equal to another object of the same type.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public override bool Equals(UxmlTypeRestriction other)
```

### Parameters

**** (\[UxmlTypeRestriction]\(/engine/6000.7/script-reference/unityengine/uielements/uxmltyperestriction)): The object to compare with.

### Returns

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