What is the main difference between hash table and Dictionary?
Answer Posted / sunil kumar
Dictionary is a generic type, Hashtable is not. Now what that
means.You get type safety with Dictionary, because you can't
insert any random object into it, and you don't have to cast
the values you take out.
And also generic collections are a lot faster as there's no
boxing/unboxing
Again Hashtable also have to box/unbox, which may have memory
consumption as well as performance penalties.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Is razor a programming language?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
What are web beacons used for?
How can u debug your .net application?
What are the security types in ASP/ASP.NET? Different Authentication modes?
How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?
How to create events for a control?
Do I need to have the latest version of windows media player installed?
Which method is used to enforce garbage collection in .net?
How do you handle server controls?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
What does uri mean?
Is asp.net and .net the same?
Differences between “dataset” and “datareader”.
What are the types of authentication in asp.net?