Click here to Skip to main content
15,896,453 members
Articles / Programming Languages / C#

Nested Set Model Treebuilder

Rate me:
Please Sign up or sign in to vote.
4.38/5 (6 votes)
17 Apr 2009CPOL2 min read 42K   761   17  
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.

License

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


Written By
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.

_

Comments and Discussions