# Equals

> Compares instances of the VisualElementStyleSheetSet struct for equality.

## Definition

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

## Equals(VisualElementStyleSheetSet)

Compares instances of the VisualElementStyleSheetSet struct for equality.

```csharp
public bool Equals(VisualElementStyleSheetSet other)
```

### Parameters

**** (\[VisualElementStyleSheetSet]\(/engine/6000.7/script-reference/unityengine/uielements/visualelementstylesheetset)): The structure to compare with.

### Returns

| Type                                                          | Description                                                                   |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the two instances refer to the same element, false otherwise. |

## Equals(Object)

Compares instances of the VisualElementStyleSheetSet struct for equality.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)):&#x20;

### Returns

| Type                                                          | Description                                                                   |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the two instances refer to the same element, false otherwise. |
