本文介绍了任何单列HashTable这样的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 基本上,我只需要一种有效的方法来存储和检索 列表中的密钥。我不需要键/值对。我用标准的 HashTable实现了这个,但是值列是浪费,因为每个键具有相同的 值,"。 > 感谢您的建议。 - Joe Geretz - Basically, I just need an efficient way to store and retrieve keys from alist. I don''t need key/value pairs. I''ve implemented this with the standardHashTable, but the value column is a waste since every key has the samevalue, "". Thanks for your advice. - Joe Geretz -推荐答案 所以基本上你想要一套,对吗?不, 框架没有内置任何东西。通常人们只使用HashTable / Dictionary< K,Vand使用 a虚拟值。 Jon So basically you want a set, right? No, there''s nothing built into theframework. Normally people just use HashTable/Dictionary<K,Vand usea dummy value. Jon 数组? - Bits.Bytes http://bytes.thinkersroom.com 这篇关于任何单列HashTable这样的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-30 06:05