Dictionary<int, string> dict = new Dictionary<int, string>(); foreach (KeyValuePair<int, string> kvp in dict) { int key = kvp.Key; string value = kvp.Value; }