Use of ArrayList
- From: stainless <Mark.Wingfield@xxxxxxxxx>
- Date: Thu, 21 Jun 2007 08:21:08 -0000
I am not very experienced with C# and have a question regarding
storing and accessing data in an array list.
Whilst reading a datarow sorted on 3 fields (thID, dthID and locID -
all 3 are type int), I need to store unique combinations of the 3
values in an arraylist, and then be able to access the combinations
later. I am fine with the reading of the datarow and identifying the
unique combinations, but am struggling with how I would then store
these in the array list.
For example:
thID dthID locID
----- ------ -------
1 1 1
2 1 1
2 1 2
2 2 2
2 4 2
3 4 3
How would I define the arraylist, add the data each time and then
access these values later?
Cheers
Mark
.
- Follow-Ups:
- Re: Use of ArrayList
- From: Rick Lones
- Re: Use of ArrayList
- From: Farrukh
- Re: Use of ArrayList
- Prev by Date: Overriding interface members
- Next by Date: Re: Go ahead. Stop programming. This ensures you from any mistakes.
- Previous by thread: Overriding interface members
- Next by thread: Re: Use of ArrayList
- Index(es):
Relevant Pages
|