What is the difference between a Hash Table and a Dictionary?

Answer Posted / hrindows@gmail.com

The main differences are listed below.

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's typical about a windows process in regards to memory allocation in .net?

587


What are the differences between com architecture and.net architecture?

567


Explain security measures exist for .net remoting in system.runtime.remoting?

575


What is lambda expressions in c#?

613


Explain why do we use the “using” statement?

586






What is the purpose of enumerable class in .net?

667


Explain the difference between asp.net & vb.net and explain architecture?

553


When displaying fonts, what is the difference between pixels, points and ems?

568


Difference between user groups and code groups

1899


I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?

548


What is the difference between vb.net and vc#.net?

555


What's singlecall activation mode used for in .net?

555


What is 3 tier architecture?

587


How many types of generations are there in a garbage collector?

525


What is difference between static page and dynamic page?

544