B
Ben Amada
I would like to use one of .NET's collection or dictionary objects to store
various name-value pieces of data. I'm hoping that I can retrieve the
values from the collection by specifying the 'name'. Also, I would like to
be able to iterate through the collection (by index I guess) and retrieve
all the values in the collection. I realize that .NET supports a few
different types of these collection objects, but prefer to use the lightest
one possible as I may store the collection in viewstate (in an ASP.NET app)
and am trying to avoid the viewstate from getting too large.
Can anyone suggest a suitable collection object (e.g. hashtable or possibly
something else)?
Lastly, a link to an example of the collection's usage would be very
appreciated!
Thanks,
Ben
various name-value pieces of data. I'm hoping that I can retrieve the
values from the collection by specifying the 'name'. Also, I would like to
be able to iterate through the collection (by index I guess) and retrieve
all the values in the collection. I realize that .NET supports a few
different types of these collection objects, but prefer to use the lightest
one possible as I may store the collection in viewstate (in an ASP.NET app)
and am trying to avoid the viewstate from getting too large.
Can anyone suggest a suitable collection object (e.g. hashtable or possibly
something else)?
Lastly, a link to an example of the collection's usage would be very
appreciated!
Thanks,
Ben