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
What is session start?
3. What goals do you have in your career?
Which protocol is used to call web service?
Which authentication uses a combination of windows and iis authentication?
How can we call webservices in Banking Applications? and where we are using it?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?
Where session variables are stored?
How do you open a page in a new window?
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
Which is better php or asp.net?
What is difference Between Authentication and authorization?
Define viewstate in .net?