# implicit operator TableReference(string)

> Converts a collection name into a name-based table reference.

## Definition

* **Type:** Operator
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

## implicit operator TableReference(TableReferenc)

```csharp
public static implicit operator TableReference(string tableCollectionName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the table collection to reference.

### Returns

| Type                                                                                   | Description                                               |
| -------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| [TableReference](/engine/6000.7/script-reference/unity/localization/tablereference.md) | A table reference that identifies the collection by name. |

### Remarks

Lets you assign a string wherever a [TableReference](/engine/6000.7/script-reference/unity/localization/tablereference.md) is expected. The result has a [TableReference.ReferenceType](/engine/6000.7/script-reference/unity/localization/tablereference/referencetype.md) of `Name`. An empty or null string produces an empty reference.

Reference a collection by name through the implicit conversion.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class TableReferenceFromNameExample
    {
        public TableReference Run() => "UI Text";
    }
}
```
