Iterating Through a Dictionary in C#

What is the Dictionary?

Dictionary stores your data using a key/value pairing.

I really like this definition of Dictionary on Dotnetperls.

The Dictionary is a fast way to remember things. A key (like a string) maps to a value (like an int). We call Add() to insert keys and map them to values.

 

Let’s Setup Our Dictionary

Let’s Iterate!!!

Whole Script