Check out example codes for ".net loop through dictionary". 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)
}
Code Example 3
foreach (KeyValuePair item in myDictionary)
{
MessageBox.Show(item.Key + " " + item.Value);
}
Learn ReactJs, React Native from akashmittal.com