using System;
using System.Collections.Generic;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static Dictionary<string, int> dic = new Dictionary<string, int>();
static void Main(string[] args)
{
dic.Add("c", 1);
dic.Add("c#", 2);
dic.Add("php", 3);
dic.Add("java", 4);
foreach (KeyValuePair<string, int> pair in dic) {
Console.WriteLine("{0},{1}", pair.Key, pair.Value);
}
}
}
}
/*
run:
c : 1
c# : 2
php : 3
java : 4
*/