What is the generic version of a Hashtable?

后端 未结 5 1771
广开言路
广开言路 2020-12-14 05:26

I have been learning the basics of generics in .NET. However, I don\'t see the generic equivalent of Hashtable. Please share some sample C# code for creating

5条回答
  •  一整个雨季
    2020-12-14 06:04

    The generic version of System.Collection.Hashtable is System.Collections.Generic.Dictionary.

提交回复
热议问题