# IsSame(string)

> Compares this UniqueStyleString to a given string for equality.

## Definition

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

```csharp
public bool IsSame(string s)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string with which to compare for equality.

### Returns

| Type                                                          | Description                                                                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if this UniqueStyleString represents an underlying string value that is equal to the provided string. |

### Remarks

This method uses a lightweight operation that avoids creating intermediary data and can be faster than converting the provided string to a UniqueStyleString.
