# ToString

> Converts an operator to its textual value.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.6/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.6/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 a filter to its full textual value: \\\<FilerName\\>\\\<Filter operator\\>\\\<FilterValue\\>. The textual value is escaped with double quotation marks if it is necessary.

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

### Returns

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