I don't know if the title makes sense, but I am wondering how a hashtable enlarges when you add items to it?
Is it like the List<T>
where it doubles in size when the limit is reached? If so, then does this doubling recreates the collection from scratch (this can be answered for List<T>
too, since I am not sure if that's what it does)?
Lastly if it indeed recreates it from scratch, then this particular Add operation would be very expensive to the user who wouldn't know that the limit is reached, right?