Summary: Sometimes harder to share code than in the List<T> case due to having two parameters
Dictionary<K,V>
The advice given for
List<T> is equally applicable to this class but the warning applies with greater force. Firstly the Dictionary class is larger than the List class, and secondly, since there are two parameters rather than just one it is less likely that you will find a copy of the code that you can share (and there are more combinations). Consider specialized Dictionaries on value types only if you expect to store more than about 1000 entries in the Dictionaries.
Note: Several common Dictionary instances are already present for general use in mscorlib.
See
PerfSystemCollectionsGeneric