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 Dictionary<int, string>();
dictionary.Add(1, "Hello");
dictionary.Add(2, "World");
foreach (var entry in dictionary)
var count = dictionary.Count + 1;
dictionary.Add(count, (count).ToString());
Console.WriteLine("Added {0}", dictionary[count]);
Console.WriteLine("Count: {0}", dictionary.Count);