示例#1
0
 private Node(string name, SubjectType type, LinkTree tree)
 {
     Name     = name;
     Type     = type;
     Depth    = 0;
     Parent   = null;
     Children = new List <Node>();
     Tree     = tree;
 }
示例#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>();
 }
示例#3
0
            internal static Node CreateRoot(string name, SubjectType type, LinkTree tree)
            {
                var r = new Node(name, type, tree);

                return(r);
            }