Laura
3
Q:

.net loop through dictionary

foreach(var item in myDictionary)
{
  foo(item.Key);
  bar(item.Value);
}
10
foreach (KeyValuePair<string, int> kvp in myDictionary)
{
	print(kvp)
}
9
foreach (KeyValuePair item in myDictionary)
{
    MessageBox.Show(item.Key + "   " + item.Value);
}
2

New to Communities?

Join the community