blairacuda
Technical User
Hello All,
I need a little assistance in selecting a collection type.
This is some sample data I need to store and search easily:
Variable, Value, Boolean
Straight, 2, NO
Length, 17, YES
Connection, RAW, NO
I am leaning towards NameValueCollection because it seems to be pretty easy to add records to my keys which would be strings. But I am reading it has a lot of overhead and HashTable would be better. However I can't tell if a HashTable will allow me to have multiple records for a key.
Which of these two would be better? Or is there is a third I should be looking at?
Thanks in advance.
CBlair
Chris Blair
Crystal, InstallShield, branching out in other programming realms.
I need a little assistance in selecting a collection type.
This is some sample data I need to store and search easily:
Variable, Value, Boolean
Straight, 2, NO
Length, 17, YES
Connection, RAW, NO
I am leaning towards NameValueCollection because it seems to be pretty easy to add records to my keys which would be strings. But I am reading it has a lot of overhead and HashTable would be better. However I can't tell if a HashTable will allow me to have multiple records for a key.
Which of these two would be better? Or is there is a third I should be looking at?
Thanks in advance.
CBlair
Chris Blair
Crystal, InstallShield, branching out in other programming realms.