How to write a nested hashtable into an arraylist?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How to write a nested hashtable into an arraylist?

  1. #1
    Join Date
    Dec 2010
    Posts
    1

    Red face 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...

  2. #2
    Arjay's Avatar
    Arjay is online now Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,245

    Re: How to write a nested hashtable into an arraylist?

    Quote Originally Posted by Colin.Rodrigues View Post
    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

  3. #3
    Join Date
    Oct 2008
    Location
    Cologne, Germany
    Posts
    756

    Re: How to write a nested hashtable into an arraylist?

    Quote Originally Posted by Colin.Rodrigues View Post
    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?
    win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming

    remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation

    private lessons are not an option so please don't ask for help in private, I won't replay

    if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center