using System.Collections.Generic;
public static void Main()
Console.WriteLine("Environment version: " + Environment.Version);
Console.WriteLine("Failed with unhandled exception: ");
public static void Test()
var dictionary = new SortedDictionary<int, string>();
dictionary.Add(1, "Hello");
dictionary.Add(2, "World");
foreach (var entry in dictionary)
var removed = dictionary.Remove(entry.Key);
Console.WriteLine(string.Format("{0} removed: {1}", entry, removed));
Console.WriteLine("Count: {0}", dictionary.Count);