473,414 Members | 1,928 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Simple collection for single key multiple data?

Is there a collection that lets you use a "multimap" like feature.

something like

MultiHash.Add(Some_Key, Data1);
MultiHash.Add(Some_Key, Data2);
....
Obviously I could handle this with an ArrayList in a HashTable but for my
purposes it would be much easier if I had the above functionality(probably
would be to hard to add it or extend the hashtable if thats possible but
wondering if theres something already built in.

Thanks,
Jon
Nov 19 '06 #1
2 1795
Jon,

DataTable by some seen as something very strange but just a class which with
its DataView(defaultview property) is implementing the ILIST and the
ICollection.

Cor

"Jon Slaughter" <Jo***********@Hotmail.comschreef in bericht
news:qS******************@newssvr21.news.prodigy.c om...
Is there a collection that lets you use a "multimap" like feature.

something like

MultiHash.Add(Some_Key, Data1);
MultiHash.Add(Some_Key, Data2);
...
Obviously I could handle this with an ArrayList in a HashTable but for my
purposes it would be much easier if I had the above functionality(probably
would be to hard to add it or extend the hashtable if thats possible but
wondering if theres something already built in.

Thanks,
Jon


Nov 19 '06 #2
"Jon Slaughter" <Jo***********@Hotmail.comwrites:
Is there a collection that lets you use a "multimap" like feature.

something like

MultiHash.Add(Some_Key, Data1);
MultiHash.Add(Some_Key, Data2);
...

Obviously I could handle this with an ArrayList in a HashTable but for my
purposes it would be much easier if I had the above functionality(probably
would be to hard to add it or extend the hashtable if thats possible but
wondering if theres something already built in.
See the MultiDictionary example in the C5 collection library
http://www.itu.dk/research/c5/

Peter
Nov 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: KN | last post by:
I know both are pretty much the same and it comes down to personal choice. But I have to make the choice for the team. Things so far that I am considering 1. XML documentation in C# -- thats...
18
by: Scott | last post by:
I have a collection where the items in the collection are dates. I want to iterate over the collection and build a value list string for the rowsource of a listbox. The dates in the collection are...
3
by: Grandma Wilkerson | last post by:
Hi, The documentation states that enumeration through a collection is inherently NOT thread-safe, since a thread which added/removed an item from said collection could screw up the thread that...
6
by: KevinD | last post by:
assumption: I am new to C and old to COBOL I have been reading a lot (self teaching) but something is not sinking in with respect to reading a simple file - one record at a time. Using C, I am...
2
by: Preston | last post by:
public Abc test() { if (oneStack.Count != 0) return (Abc)oneStack.Peek(); } I'd like to do return (Abc)oneStack.Peek()first, and then do receiveStack.Pop()
9
by: Abhishek Srivastava | last post by:
Hello All, In IIS 6.0 We have a concept of worker processes and application pools. As I understand it, we can have multiple worker process per appliction pool. Each worker process is dedicated...
19
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
4
by: MNNovice | last post by:
Hi: I need some help with the ID numbering for a database I am designing for my DVD collection. I have some general idea of what I would like to accomplish. Here it is in a nutshell. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.