Thursday, 2 June 2016

What is the difference between a Hash Table and a Dictionary

Dictionary:
  • Returns an error if the key does not exist
  • No boxing and unboxing
  • Faster than a Hash table
Hashtable:
  • Returns NULL even if the key does not exist
  • Requires boxing and unboxing
  • Slower than a Dictionary

No comments:

Post a Comment