# Dictionary&lt;TKey, TValue>

A collection that associates unique keys with values.

## What is **Dictionary<TKey, TValue>** in C#?

**Dictionary<TKey, TValue>** — A collection that associates unique keys with values.

```csharp
class Inventory
{
    Dictionary<string, int> stock = new();
}
```

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/dictionary-tkey-tvalue
