0

Difference between HashTable and Dictionary?

Interview Questions

11th Jul 2016, 1:10 PM
Abhishek KU
Abhishek KU - avatar
2 Antworten
0
Dictionary is slightly faster than Hashtable and it is generic. That means Dictionary can hold values of a specific type instead of object. Casting is no longer required.
23rd Jul 2016, 8:30 PM
Idril
Idril - avatar
0
in terms of C# hashtable can accept null value but dictionary will throw null exception if the key does not exist
26th Jul 2016, 5:04 PM
Nild.2141