# GetStringForKey(string)

Method in [CompilationResult](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.compilationresult)

## Summary

Gets the user-facing string for a given key from the code dump helper's string table.

```csharp
public string? GetStringForKey(string key)
```

## Parameters

| Name         | Description                    |
| ------------ | ------------------------------ |
| `string` key | The key to fetch a string for. |

## Returns

The found string, or `null` if none was found.
