Dictionary Object in ASP.Net

  • Thread starter Thread starter shahid.juma
  • Start date Start date
S

shahid.juma

Replicating what was avaialble in ASP, Scripting.Dictionary, is there
something simlar in ASP.NET (C#)?

Thanks,
Shahid
 
There are several collections in the System.Collections and
System.Collections .Specialized namespace. These include a hash table,
hybrid dictionary, string dictionary, list dictionary, etc. Check out the
namespace and see if any of those collections will work for you.

Hope this helps.

Jon
 
For simple key/value pairs, try a Hashtable. If you want to sort the list,
try a SortedList instead. There are other collections available, as well.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top