filmov
tv
Difference between Hashtable and dictionary #Csharp #techinterviews #interviewpreparation #interview
Показать описание
Difference between Hashtable and Dictionary in c# #hashtable #dictionary #csharp #csharpinterviewquestions
Difference 1: Generics
Dictionary is a generic collection, which means that it can only store elements of a specific type,
whereas HashTable can store elements of any type.
Difference 2: Type Conversion
In a HashTable, the key and value types are both objects, so when you access a value by its key, you need to cast it to the appropriate type before you can use it.
In a Dictionary, the key and value types are strongly typed, so you don't need to cast the value when you access it.
Difference 3: Null Values
A Dictionary can accept null as a valid key or value, whereas a HashTable cannot store null as a key or a value.
Difference 1: Generics
Dictionary is a generic collection, which means that it can only store elements of a specific type,
whereas HashTable can store elements of any type.
Difference 2: Type Conversion
In a HashTable, the key and value types are both objects, so when you access a value by its key, you need to cast it to the appropriate type before you can use it.
In a Dictionary, the key and value types are strongly typed, so you don't need to cast the value when you access it.
Difference 3: Null Values
A Dictionary can accept null as a valid key or value, whereas a HashTable cannot store null as a key or a value.
Difference between hashtable and dictionary in c# | Dictionary VS Hashtable c#
Difference between Hashtable and Dictionary in C#
How do dictionaries (hashmaps) actually work?
DIFFERENCE BETWEEN HASHTABLE AND DICTIONARY IN C# | DICTIONARY VS HASHTABLE C# | IQBees
Difference between HashTable and Dictionary in C#
Hash tables in 4 minutes
Difference between Hashtable and dictionary #Csharp #techinterviews #interviewpreparation #interview
Difference between Dictionary and Hashtable in c# #shorts #coding #csharp #programming
14.11 HashMap and HashTable in Java
Introduction to Hash Tables and Dictionaries (Data Structures & Algorithms #13)
Learn Hash Tables in 13 minutes #️⃣
Hash Tables, Associative Arrays, and Dictionaries (Data Structures and Optimization)
Differences Between Dictionary and Hashtable
Dictionary VS Hashtable c#
C# : Difference between Dictionary and Hashtable
What is the difference between Arraylist and Hashtable?
What is the difference between List and Dictionary Collections ?
Which dictionary to choose in C# and which one is dangerous
Hashtable vs Dictionary in c#
What is the difference between Arraylist and Hashtable ?
Dictionary Part 2 : Understanding .net C# Dictionary Internals
Dictionary vs Hashtable | C# Interview Questions | Tamil
Hash Table And HashMap In Python | Implementing Hash Tables Using Dictionary In Python | Edureka
Which is faster Dictionary or Hashtable
Комментарии