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