# ToString

> Converts an operator to its textual value.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.0/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## ToString(HierarchySearchFilterOperator)

Converts an operator to its textual value.

```csharp
public static string ToString(HierarchySearchFilterOperator op)
```

### Parameters

**** (\[HierarchySearchFilterOperator]\(/engine/6000.0/script-reference/unity/hierarchy/hierarchysearchfilteroperator)): The filter operator

### Returns

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

## ToString()

Converts an operator to its textual value.

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

### Returns

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