enumerate dictionary csharp

Code Example - enumerate dictionary csharp

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