How to iterate over a dictionary? August 23, 2022 by Tarik foreach(KeyValuePair<string, string> entry in myDictionary) { // do something with entry.Value or entry.Key }