Dictionary<int, string> dict = new Dictionary<int, string>();
foreach (KeyValuePair<int, string> kvp in dict)
{
int key = kvp.Key;
string value = kvp.Value;
}
foreach(KeyValuePair<int, string> kvp in dictionary)
{
Console.WriteLine("Key : " + kvp.Key.ToString() + ", Value : " + kvp.Value);
}