I\'ve seen a few different ways to iterate over a dictionary in C#. Is there a standard way?
I will take the advantage of .NET 4.0+ and provide an updated answer to the originally accepted one:
foreach(var entry in MyDic) { // do something with entry.Value or entry.Key }