My understanding is that Dictionary does not have boxing issues and faster in performance. Are there cases that the usage of Hashtable would be more advisable compared to Dictionary? Thanks
My understanding is that Dictionary does not have boxing issues and faster in performance
Share
For .Net 2.0, you pretty much always want Dictionary. However, be warned that it’s not just a ‘drop in replacement’ for an existing Hashtable. There are some differences in the way they work (mostly how they handle nulls) that mean you do need to check your code first.