Click here to Skip to main content
13,301,105 members (82,387 online)
Click here to Skip to main content


17 bookmarked
Posted 9 Apr 2009

Nested Set Model Treebuilder

, 17 Apr 2009
An IEnumerable extension method to build a hierarchical tree from your NSM data
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RadixSolutionsUtilities
    public class Pair<P1, P2>
        public P1 First { get; set; }
        public P2 Second { get; set; }

        public Pair(P1 first, P2 second)
            First = first;
            Second = second;

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Troy W Phoenix
Software Developer (Senior)
United States United States
Been designing, implementing, and maintianing projects in .Net since the beginning of time...or so it seems. I've done a little of everything before that though; java, vb classic, c, c++, assembly, pascal, basic.

*I'm not a big fan of UI work.


You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 17 Apr 2009
Article Copyright 2009 by Troy W Phoenix
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid