K
K
Ksenia2019-02-23 21:10:45
C++ / C#
Ksenia, 2019-02-23 21:10:45

When are hash tables used?

I'm currently learning C# collections. Came to Hashtable. Tell me how often and for what tasks (your examples) are they used? What is their main difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Esin, 2019-02-23
@Ksushqa

A hash table is a dictionary, similar to an array, but instead of numeric indexes, it has named keys. It is better to abandon the hashtable in favor of a full-fledged generic dictionary Dictionary, it works without type casting in the internal implementation and is faster than Hashtable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question