c# iterate over dictionary values code example
Example 1: how to do a foreach loop in c# for dictionary
foreach (KeyValuePair<string, int> kvp in myDictionary)
{
print(kvp)
}
Example 2: c# foreach on a dictionary
foreach(var item in myDictionary)
{
foo(item.Key);
bar(item.Value);
}