寻找像哈希表一样的东西,只有KEYS [英] looking for somehting like a hashing table, with only KEYS

查看:65
本文介绍了寻找像哈希表一样的东西,只有KEYS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨组,


我需要类似的功能我从哈希表中获取,但没有

值。我需要的是键。这当然否定了对散列的需要,

但是我想知道C#中是否有一个类。


我需要to:


- 设置键

- 寻找键的存在

- 删除键。


用于此目的的任何东西?


- Ron

Hi group,

I need similar functionality I''m getting from the hashtable, but without the
value .all I need is keys. this of course negates the need for "hashing",
but I wanted to know if there''s a class for that in C#.

I need to:

- Set keys
- look for the existence of keys
- remove keys.

anything for this purpose?

- Ron

推荐答案




我不清楚你想要什么,如果你只想持有一系列价值

(键)那么你可以使用任何收藏。


也许更多细节会有所帮助

-

-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

佛罗里达州交通局

Ron M. Newman < co ********** @ confideltial.comwrote in message

news:Ot ************** @ TK2MSFTNGP05.phx.gbl ...
Hi,

I''m not clear of what you want, if you just want to hold a series of values
( the "keys" ) then you can use any collection.

Maybe a little more details will be helpful
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ron M. Newman" <co**********@confideltial.comwrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...

嗨组,


我需要类似的功能我从哈希表中获取,但没有

值.all我需要的是键。这当然不需要

散列,但我想知道C#中是否有类别。


我需要to:


- 设置键

- 寻找键的存在

- 删除键。


用于此目的的任何东西?


- Ron
Hi group,

I need similar functionality I''m getting from the hashtable, but without
the value .all I need is keys. this of course negates the need for
"hashing", but I wanted to know if there''s a class for that in C#.

I need to:

- Set keys
- look for the existence of keys
- remove keys.

anything for this purpose?

- Ron



Ron,


为什么不使用布尔值true,或使用null。当我需要这个功能时,这就是我的b $ b。


如果我不得不猜测,我会说你正在寻找一种预防方法

重复。


希望这会有所帮助。

-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


" Ron M. Newman" < co ********** @ confideltial.comwrote in message

news:Ot ************** @ TK2MSFTNGP05.phx.gbl ...
Ron,

Why not just use a boolean value of "true", or use null. That''s what I
do when I need this functionality.

If I had to guess, I would say you are looking for a way to prevent
duplicates.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Ron M. Newman" <co**********@confideltial.comwrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...

嗨组,


我需要类似的功能我从哈希表中获取,但没有

值.all我需要的是键。这当然不需要

散列,但我想知道C#中是否有类别。


我需要to:


- 设置键

- 寻找键的存在

- 删除键。


用于此目的的任何东西?


- Ron
Hi group,

I need similar functionality I''m getting from the hashtable, but without
the value .all I need is keys. this of course negates the need for
"hashing", but I wanted to know if there''s a class for that in C#.

I need to:

- Set keys
- look for the existence of keys
- remove keys.

anything for this purpose?

- Ron






这很简单。我需要维护一个对象列表。我想搜索对象列表中的
(使用其他对象)并随意删除它们。


有点像使用哈希表,只有没有值得,我不需要那些。


Ron

" Ignacio Machin(.NET / C#MVP)" < ignacio.machin AT dot.state.fl.uswrote
消息新闻中的
:O%**************** @ TK2MSFTNGP02.phx.gbl。 ..
Hi,

It''s really simple. I need to maintain a list of objects. I want to search
of the list of the objects (using other objects) and remove them at will.

sort of like using a hashtable, only without values, I do not need those.

Ron
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.uswrote
in message news:O%****************@TK2MSFTNGP02.phx.gbl...




我不清楚你想要什么,如果你只是想拥有一个系列

值(键)然后你可以使用任何收藏。


也许更多细节会有所帮助


-

-

Ignacio Machin,

ignacio.machin at dot.state.fl.us

佛罗里达州交通局


" Ron M. Newman" < co ********** @ confideltial.comwrote in message

news:Ot ************** @ TK2MSFTNGP05.phx.gbl ...
Hi,

I''m not clear of what you want, if you just want to hold a series of
values ( the "keys" ) then you can use any collection.

Maybe a little more details will be helpful
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Ron M. Newman" <co**********@confideltial.comwrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...

>嗨组,

我需要类似的功能我从哈希表中获取,但没有
价值。我需要的是钥匙。这当然否定了对哈希的需求,但我想知道C#中是否有类别。

我需要:

- 设置键
- 寻找键的存在
- 删除键。

任何用于此目的的东西?

- Ron
>Hi group,

I need similar functionality I''m getting from the hashtable, but without
the value .all I need is keys. this of course negates the need for
"hashing", but I wanted to know if there''s a class for that in C#.

I need to:

- Set keys
- look for the existence of keys
- remove keys.

anything for this purpose?

- Ron




这篇关于寻找像哈希表一样的东西,只有KEYS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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