Use of ArrayList

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: vector <int> load from file
    ... > I figured out how to put a vector of ints out into a file. ... You start by storing _all_ the information about the vector you're ... Once you've done that, reading in a vector is pretty trivial: ... open the file and read the first file. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Limit To List - table showing incorrect data
    ... After reading your message I was able to search through some posts ... unbound text box is not storing the correct value. ... On Nov 18, 12:26 pm, John W. Vinson ...
    (microsoft.public.access.formscoding)
  • Reading files
    ... would you go about reading the file and storing each field in a ... sdsds dsfsdf4r33 ... sdassa er353fds ...
    (comp.unix.shell)
  • Re: Reading files
    ... > would you go about reading the file and storing each field in a ... > sdassa er353fds ... Linux solution for data management and processing. ...
    (comp.unix.shell)
  • Re: Concurrency problems
    ... >I cannot use lock hints because the connection is closed after reading the ... >Storing the PK in separate table is good idea but if the client which has ...
    (microsoft.public.sqlserver.programming)