Which collection for storing unique strings?

后端 未结 3 918
猫巷女王i
猫巷女王i 2021-01-04 07:03

I\'m looking for a collection just like Dictionary(OF Key, Value) but I don\'t actually need a key and value. Key itself is enough. So something like Coll

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-04 07:34

    HashSet would work for this. It lets you store a unique set of values, without "abusing" a dictionary.

提交回复
热议问题