Jump to content
Xtreme .Net Talk

Creating a Tree data structure


Recommended Posts

Guest Jalil Sear [MCPD SharePoint]
Posted

Hi,

 

I need to create a tree data structure using c#.

 

I need to be able to add children to the structure, have a method that will retrieve all of the decendants for a given node in the tree and another method that will retrieve the parent hierarchy for a given node (i.e. will iterate upwards until it reaches the root).

 

I know there are a lot of ways of doing this but wanted to get an idea of how most of you would go about solving this problem.


Visit my blog Jalil Sear's [MCPD SharePoint 2010] Weblog

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...