iterate through dictionary c#

C#
foreach(var item in myDictionary)
{
  foo(item.Key);
  bar(item.Value);
}foreach (KeyValuePair<string, int> kvp in myDictionary)
{
	print(kvp)
}
Source

Also in C#: