Exemplo n.º 1
0
 private Node(string name, SubjectType type, LinkTree tree)
 {
     Name     = name;
     Type     = type;
     Depth    = 0;
     Parent   = null;
     Children = new List <Node>();
     Tree     = tree;
 }
Exemplo n.º 2
0
 private Node(string name, SubjectType type, Node parent)
 {
     Name     = name;
     Type     = type;
     Depth    = parent.Depth + 1;
     Parent   = parent;
     Tree     = parent.Tree;
     Children = new List <Node>();
 }
Exemplo n.º 3
0
            internal static Node CreateRoot(string name, SubjectType type, LinkTree tree)
            {
                var r = new Node(name, type, tree);

                return(r);
            }