If I have, say, 100 items that\'ll be stored in a dictionary, should I initialise it thus?
var myDictionary = new Dictionary(100); <
var myDictionary = new Dictionary(100);
Yes, contrary to a HashTable which uses rehashing as the method to resolve collisions, Dictionary will use chaining. So yes, it's good to use the count. For a HashTable you probably want to use count * (1/fillfactor)
HashTable
Dictionary
count * (1/fillfactor)