//remove from table calls arrayclass' remove with key //if we did remove something, we'll decriment count and return a status public bool Remove(TKey key) { bool removed = _arrayClass.Remove(key); if (removed) { _count--; } return(removed); }
/// <summary> /// Removes the item from the hash table whose key matches /// the specified key. /// </summary> /// <param name="key">The key of the item to remove</param> /// <returns>True if the item was removed, false otherwise.</returns> public bool Remove(TKey key) { var removed = _array.Remove(key); if (removed) { Count--; } return(removed); }