任何单列HashTable这样的东西? [英] Any such thing as a single column HashTable?

查看:63
本文介绍了任何单列HashTable这样的东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我只需要一种有效的方法来存储和检索

列表中的密钥。我不需要键/值对。我用标准的

HashTable实现了这个,但是值列是浪费,因为每个键具有相同的

值,"。 >

感谢您的建议。


- Joe Geretz -

Basically, I just need an efficient way to store and retrieve keys from a
list. I don''t need key/value pairs. I''ve implemented this with the standard
HashTable, but the value column is a waste since every key has the same
value, "".

Thanks for your advice.

- Joe Geretz -

推荐答案

字符串数组?


-

HTH,


Kevin Spencer

Microsoft MVP


打印组件,电子邮件组件,

网络组件,控件等等。

DSI PrintManager,Miradyne组件图书馆:
http://www.miradyne.net


" Joseph Geretz" < jg ***** @ nospam.com写信息

新闻:%2 **************** @ TK2MSFTNGP02.phx.gbl .. 。
Array of strings?

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
Networking Components, Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Joseph Geretz" <jg*****@nospam.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...

基本上,我只需要一种有效的方法来存储和检索

列表中的密钥。我不需要键/值对。我用

标准的HashTable实现了这个,但是值列是浪费,因为每个键都有相同的值,"。 >

感谢您的建议。


- Joe Geretz -
Basically, I just need an efficient way to store and retrieve keys from a
list. I don''t need key/value pairs. I''ve implemented this with the
standard HashTable, but the value column is a waste since every key has
the same value, "".

Thanks for your advice.

- Joe Geretz -



3月22日下午4:54,Joseph Geretz < jger ... @nospam.comwrote:
On Mar 22, 4:54 pm, "Joseph Geretz" <jger...@nospam.comwrote:

基本上,我只需要一种有效的方法来存储和检索来自

的密钥名单。我不需要键/值对。我已经用标准的

HashTable实现了这个,但是值列是浪费,因为每个键具有相同的

值,"。
Basically, I just need an efficient way to store and retrieve keys from a
list. I don''t need key/value pairs. I''ve implemented this with the standard
HashTable, but the value column is a waste since every key has the same
value, "".



所以基本上你想要一套,对吗?不,

框架没有内置任何东西。通常人们只使用HashTable / Dictionary< K,Vand使用

a虚拟值。


Jon

So basically you want a set, right? No, there''s nothing built into the
framework. Normally people just use HashTable/Dictionary<K,Vand use
a dummy value.

Jon


2007年3月22日星期四12:54:49 -0400,Joseph Geretz写道:
On Thu, 22 Mar 2007 12:54:49 -0400, Joseph Geretz wrote:

基本上,我只需要一种有效的方式来存储和从

列表中检索密钥。我不需要键/值对。我用标准的

HashTable实现了这个,但是值列是浪费,因为每个键具有相同的

值,"。 >

感谢您的建议。


- Joe Geretz -
Basically, I just need an efficient way to store and retrieve keys from a
list. I don''t need key/value pairs. I''ve implemented this with the standard
HashTable, but the value column is a waste since every key has the same
value, "".

Thanks for your advice.

- Joe Geretz -



数组?< br $>
-

Bits.Bytes
http://bytes.thinkersroom.com


这篇关于任何单列HashTable这样的东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆