Skip to main content
All lessons

Dictionaries

8 min · C#

Look up values by key with Dictionary — C#'s map.

C# · Dictionaries0/5 cleared

Enemy 1 of 5

A Dictionary<TKey, TValue> stores key-value pairs. Add(key, value) stores and [key] reads.

You
Goblin Glitch

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10