What is the main difference between hash table and Dictionary?
Answer Posted / lakshmi maddala
Dictionary and Hash table are collection of data structure to hold data as key/value pairs.
Dictionary is generic type, hash table is not
We can't use dictionary with web services.
In .NET hash table is thread safe for use by multiple reader thread and a single writing thread, while in dictionary public static members are thread safe, but any instance members are not guaranteed to be thread safe.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What are demand-paging and pre-paging?
What is meant by server side scripting?
What is viewstate parameter?
How ViewstateMac works?
What is application Object?
What is a 307 redirect?
Can you change a Master Page dynamically at runtime?
What is the difference between web config and machine config files?
What is ispostback property?
What is asp.net architecture?
What is the difference between union and join?
What is the web.config file in asp?
Explain the benefits of viewstate?
How does session state work in asp.net?
What is cross page posting? How is it done?