C# Console Application

Dictionary d = new Dictionary()
	{
	    {"Ram", 2},
	    {"Shyam", 1},
	    {"Hari", 0},
	    {"Kris", -1}
	};
	
	foreach (KeyValuePair pair in d)
	{
	    Console.WriteLine("{0}, {1}", pair.Key, pair.Value);
	}
	

OutPut:

        Ram, 2
        Shyam, 1
        Hari, 0
        Kris, -1