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!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top