Beispiel #1
0
        static void Main()
        {
            var set = new HashSetImplementation.HashSetWithLists <Chuska>();

            var rnd = new Random();
            var sw  = new Stopwatch();

            sw.Start();

            for (int i = 0; i < 10000; ++i)
            {
                set.Add(new Chuska());
            }

            sw.Stop();
            Console.WriteLine(sw.Elapsed);

            Console.WriteLine(set.GetMaxCount() + " " + set.GetAverageCount());
        }
 public Dictionary()
 {
     set = new HashSetImplementation.HashSetWithLists <KeyValuePair <K, V> >();
 }