What is the main difference between hash table and Dictionary?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mehdi
Dictionary is a generic type, Hashtable is not. 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.
| Is This Answer Correct ? | 15 Yes | 3 No |
Answer / 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 |
What are the advantages of Web API?
How to do Caching in ASP?
What are the different Key TreeView Properties in Asp.net 2.0?
suppose we have two object;obj1 and obj2 can we assign obj2 to one1; and if yes; then after assigning suppose we delete obj2 then obj1 will retain obj2 value or not.
How to prepare culture-specific formatting in .net.
When a dropdownlist has been added by some records and it has been binded why it is not executing i'm facing this error pls help me ? if (is!pageposback) { arraylist books = new arraylist; books.add ("gone with the wind"); books.add ("rahulsriramprakash"); books.add ("vishal"); dropdowndisplay.datasource=books; dropdowndisplay.databind(); } The error is : 1) The dropdowndisplay does not exist.
Where is http session stored?
Where can i get Latest Microsoft .Net Certification Dumps & what Types of .Net Certifications are there?
I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that
1 Answers HCL, Infosys, Mantec Consultants,
what are the oops concepts are used in your project?
1 Answers AppShark, IBM, Kotak,
How do I use a proxy server when invoking a web service?
How to execute a stored procedure.and how to call it form a asp page
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)