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