Why is Dictionary preferred over Hashtable in C#?

后端 未结 19 1519
长情又很酷
长情又很酷 2020-11-22 05:53

In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that?

19条回答
  •  梦谈多话
    2020-11-22 06:44

    One more difference that I can figure out is:

    We can not use Dictionary (generics) with web services. The reason is no web service standard supports the generics standard.

提交回复
热议问题