# Sandbox.SandboxSystemExtensions.GetOrCreate

```csharp
static TValue GetOrCreate(IDictionary<TKey,TValue> dict, TKey key)
```

### Parameters

- `dict` (`IDictionary<TKey,TValue>`)
- `key` (`TKey`)

### Returns

`TValue`

Declared in [Sandbox.SandboxSystemExtensions](/api/Sandbox.SandboxSystemExtensions).
Assembly: `Sandbox.System`.
