How to write a nested hashtable into an arraylist?
I got a Hashtable into an arraylist...but this was a simple key:value hashtable...My problem arises when the hashtable is nested and...thus i get only the first node...
In the second node the hashtable is nested...so in the output I get System.Collection.Hashtable but not all the keys and values inside the nested hashtables....
I assume there has to be a recursive function which traverses through the hashtable...I need the syntax to this recursive function...
Re: How to write a nested hashtable into an arraylist?
Quote:
Originally Posted by
Colin.Rodrigues
I assume there has to be a recursive function which traverses through the hashtable...I need the syntax to this recursive function...
You can see what methods hashtable supports by looking at its documentation in msdn.
Hashtable Class
Re: How to write a nested hashtable into an arraylist?
Quote:
Originally Posted by
Colin.Rodrigues
I assume there has to be a recursive function which traverses through the hashtable...I need the syntax to this recursive function...
I'm afraid the recursion part you'll have to write yourself. but you know how recursion works? you know the word so you must know what it means, don't you?