# Dictionary&lt;TKey, TValue>

*noun*

say it: **“DIK-shun-air-ee”** **/ˈdɪkʃənɛri/**

A C# collection that stores values under unique keys, so you can look each value up by its key.

## 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();
}
```

## In a sentence

- “I keep stock counts in a **Dictionary**&lt;string, int>, keyed by title.”

Level: Freelancer · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=4)

Updated: November 9, 2026

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