Check out example codes for "iterate through dictionary c#". It will help you in understanding the concepts better.

Code Example 1

foreach(var item in myDictionary)
{
  foo(item.Key);
  bar(item.Value);
}

Code Example 2

foreach (KeyValuePair<string, int> kvp in myDictionary)
{
	print(kvp)
}

Learn ReactJs, React Native from akashmittal.com