Exemplo n.º 1
0
 /// <summary>
 /// Add a new element to the HashTable.
 /// </summary>
 /// <param name="commandInfo"><see cref="CommandInfo"/> to be added.</param>
 private void add(CommandInfo commandInfo)
 {
     int index = hashFunction(commandName: commandInfo.getName());
     if (array[index] != null) {
         index = collisionHandler(index: index);
     }
     array[index] = commandInfo;
 }