Can anyone please tell me the difference between DictionaryBase and generic Dictionary<TKey, TValue>, except that DictionaryBase is an abstract class! Both of them are strongly typed and I read somewhere that generic classes are better than non-generic ones in performance and should be preferred, so what is the exact use of DictionaryBase then?
Both the classes are almost same!
Any kind of help would be appreciated
Thanks
Dictionarybase is base class implementing the non generic IDictionary interface while Dictionary is the generic version of a dictionary implementing the generic IDictionary interface. Use of generics is preferred over non generics.
I think this would be more helpful When to use generics?
Also go through, Introduction to Generics