using System.Collections.Generic;
public static void Main()
Dictionary<A, int> dict = new Dictionary<A, int>();
for (int i = 0; i < 10; i++)
Console.WriteLine(dict[a1]);
Console.WriteLine(dict[a2]);
Console.WriteLine("Hello World");
public string B {get; set;}
public override int GetHashCode()
return 300 + B.GetHashCode();