using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
SortedList<int,int> sl = new SortedList<int,int>();
sl.Add(0,1);
sl.Add(1,2);
sl.Add(2,3);
for (int i = 0; i < sl.Count; i++)
Console.WriteLine(sl[i]);
}
sl.Remove(1);
foreach(int x in sl.Keys)
Console.WriteLine(sl[x]);
//Console.WriteLine("Hello World");
/*Clear() - Removes all the elements from the sorted list.
ContainsKey(K key) - Returns true when the specified key is present in the sorted list.
ContainsValue(V value) - Returns true when a specified value is present in the sorted list.
IndexOfKey(K key) - Returns the index of the specified key within the sorted list.
IndexOfValue(V value) - Returns the index of the specified value within the sorted list.*/