Пример #1
0
 private static void Fill(StringsArray stringsArray, HashTable hashset, int n)
 {
     for (var i = 0; i < n; i++)
     {
         var text = Guid.NewGuid().ToString();
         stringsArray.Fill(i, text);
         hashset.Fill(i, text);
     }
 }
Пример #2
0
        private static void Main()
        {
            const int n            = 5;
            var       stringsArray = new StringsArray(n);
            var       hashset      = new HashTable(n);

            Fill(stringsArray, hashset, n);
            Find(n, stringsArray.Arrays, hashset.Arrays);
            Console.ReadKey();
        }