> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage/yarn.unity.inmemoryvariablestorage.trygetvalue.md).

# TryGetValue\<T>(string,T)

Method in [InMemoryVariableStorage](/api/csharp/yarn.unity/yarn.unity.inmemoryvariablestorage.md)

## Summary

```csharp
public override bool TryGetValue<T>(string variableName, [NotNullWhen(true)] out T result)
```

## Parameters

| Name                  | Description |
| --------------------- | ----------- |
| `string` variableName |             |
| `T` result            |             |
