# ToString()

> Returns a string value with the same content as the string that was used to obtain this UniqueStyleString.

## Definition

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

```csharp
public override string ToString()
```

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

The returned string may require access to large memory lookups or be reconstructed from other internal data. For performance-critical scenarios where both the UniqueStyleString and its underlying string value are required, keeping a local reference to both representations may give better results.
