开发者

generic class supports duplicated key [duplicate]

开发者 https://www.devze.com 2023-01-31 18:02 出处:网络
This question already has answers here: 开发者_开发百科 Closed 12 years ago. Possible Duplicate:
This question already has answers here: 开发者_开发百科 Closed 12 years ago.

Possible Duplicate:

Duplicate keys in .NET dictionaries?

I want to use a kind of dictionary which can support duplicated keys. Is there any builtin support in .Net framework?


Yes, using the Lookup class.


No but you can use List it doesnt have key values instead of you can store like List.add( key,value)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号