using System;
using System.Collections.Generic;
class Program
{
static void Main() {
var dict = new Dictionary<int, string>() { {1, "c#"},
{15, "vb.net"},
{7, "java"},
{2, "python"}
};
foreach(var keyval in dict)
Console.WriteLine("Key: {0} Value: {1}", keyval.Key, keyval.Value);
}
}
/*
run:
Key: 1 Value: c#
Key: 15 Value: vb.net
Key: 7 Value: java
Key: 2 Value: python
*/