The main differences are listed below.
Returns an error if the key does not exist
No boxing and unboxing
Faster than a Hash table
Returns NULL even if the key does not exist
Requires boxing and unboxing
Slower than a Dictionary
Asked In: Many Interviews |