Exemplo n.º 1
0
 public Node(Node parent, IComparable key, object value, bool createNullChildren)
 {
     Parent = parent;
     Key = key;
     Value = value;
     CreateNullChildren = createNullChildren;
 }
Exemplo n.º 2
0
        public Node AddChild(Node child)
        {
            //ValidateKeyAlreadyExists(child.Key);

            ChildNodes.Add(child.Key, child);

            return child;
        }
Exemplo n.º 3
0
        public Node AddChild(IComparable key, object value)
        {
            //ValidateKeyAlreadyExists(key);

            var child = new Node(this, key, value, CreateNullChildren);
            return AddChild(child);
        }