simple ArrayList question

  • Thread starter Thread starter MM
  • Start date Start date
M

MM

How do you reference a Hashtable in an ArrayList?

ArrayList al = new Arraylist();
al.Add(new Hashtable());

now howto add/access hashtable entries?

thanks, matthew.
 
Hashtable h1 = (Hashtable)al[0];

or

foreach (Hashtable h in al)
{
... do something with the hashtable "h"...
}
 
Back
Top