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