foreach(var item in myDictionary)
{
foo(item.Key);
bar(item.Value);
}
foreach (KeyValuePair item in myDictionary)
{
MessageBox.Show(item.Key + " " + item.Value);
}
//for unity
foreach (var keyValuePair in myDictionary)
{
ValueClass myValue = keyValuePair.Value;
Debug.Log(myValue);
}
foreach(var item in myDictionary.Keys)
{
foo(item);
}
foreach(var item in myDictionary.Values)
{
foo(item);
}