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 asp.net and .net are same or different?
How to add DateTime Control in normal DataGrid Server Control?
Where web.config file is used?
What is difference between rest and soap?
What is inproc mode in session?
What are the different authentication modes in asp.net?
What is the request flow used for asp.net mvc framework? : asp.net mvc
What are the different types of sessions in asp.net? Name them?
Explain about asp.net caching?
Which validator control you use if you need to make sure the values in two different controls matched?
Where session variables are stored?
Which method do you use to kill explicitly a users session?
What is asp net theme?
What is the use of web.config file?
How many ways are there to maintain a state in .net? What is view state?