dictionary iterate c# code example Example: iterate through dictionary c# foreach(var item in myDictionary) { foo(item.Key); bar(item.Value); }