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

            ChildNodes.Add(child.Key, child);

            return child;
        }
Beispiel #3
0
        public Node AddChild(IComparable key, object value)
        {
            //ValidateKeyAlreadyExists(key);

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