Example #1
0
        public CloneableTestNode(CloneableTestNode parent, int index)
        {
            this.Parent = parent;
            this.Index  = index;

            Children = new CloneableTestNodeCollection(this);
        }
Example #2
0
        public object Clone()
        {
            CloneableTestNode Clone = new CloneableTestNode((CloneableTestNode?)Parent, Index);

            foreach (CloneableTestNode Child in Children)
            {
                Clone.Children.Add(Child.Clone());
            }

            return(Clone);
        }