xxxxxxxxxx
foreach(KeyValuePair<string, string> entry in myDictionary)
{
// do something with entry.Value or entry.Key
}
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);
}