R
rno
Hi,
I'm sorry if I'm asking for the obvious - my head is spinning a bit
trying to learn this c# stuff.
I have a list of paired values in the form of:
stringA, string1
stringB, string2
stringC, string1
stringC, string3
stringD, string2
etc..
I need to store these value pairs into some kind of collection. Since
I do not have unique 'keys', I cannot use a Dictionary or SortedList.
The combination of -say- stringA+string1 *will* be unique. (if
case-sensitive). That could serve as a key, but then I need to store 2
values.
My goal is to query the collection for stringA, and find all
associated strings 1, 2, etc.
My current idea is to create a simple 3-field table in a dataset.
Another way -since this is for a Form app- could be to use an
invisible ListView (not too keen on that). Either way, I have a
feeling I might be overly complicating things.
I'd appreciate some general advice on how to best deal with this.
tia
arno
I'm sorry if I'm asking for the obvious - my head is spinning a bit
trying to learn this c# stuff.
I have a list of paired values in the form of:
stringA, string1
stringB, string2
stringC, string1
stringC, string3
stringD, string2
etc..
I need to store these value pairs into some kind of collection. Since
I do not have unique 'keys', I cannot use a Dictionary or SortedList.
The combination of -say- stringA+string1 *will* be unique. (if
case-sensitive). That could serve as a key, but then I need to store 2
values.
My goal is to query the collection for stringA, and find all
associated strings 1, 2, etc.
My current idea is to create a simple 3-field table in a dataset.
Another way -since this is for a Form app- could be to use an
invisible ListView (not too keen on that). Either way, I have a
feeling I might be overly complicating things.
I'd appreciate some general advice on how to best deal with this.
tia
arno