Collections

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
I have a custom class which represents an item in my shopping basket (e-commerce site)

Is there a collection object which I can add all the shopping cart items to (normally I just use a datatable in the session to hold this info) but I want to try it by just adding the collection to the session.

Whats the best collection object to use for this?

Thanks
 
You could just use something simple like an ArrayList or HashTable if you are using .Net 1 / 1.1.

If you are using .Net then something like a generic List or Dictionary may be easier to use.
 
Back
Top