Beispiel #1
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="size"></param>
 public HashTable(int size)
 {
     hashTableSize = size;
     hashTable = new List[hashTableSize];
     for (int i = 0; i < hashTableSize; ++i)
     {
         hashTable[i] = new List();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Class constructor
 /// </summary>
 /// <param name="size"></param>
 public HashTable(int size, IHashFunction hashFunction)
 {
     this.hashFunction = hashFunction;
     hashTableSize = size;
     hashTable = new List[hashTableSize];
     for (int i = 0; i < hashTableSize; ++i)
     {
         hashTable[i] = new List();
     }
 }