associative arrays is c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i set an associative array and how can i get both value and index
in'a variable... with are both string ???
 
sadun said:
how can i set an associative array and how can i get both value and index
in'a variable... with are both string ???

Check out System.Collections.HashTable.

If they're always both strings, you might want to check out
System.Collections.Specialized.NameValueCollection since it's a little
easier to work with if you can be sure both key and value are string.

-Chad
 

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