Esempio n. 1
0
            private void SwapChildren(Node <T> existingChild, Node <T> newChild, Node <T> surrogateParent)
            {
                surrogateParent.AcceptAsOwnChild(existingChild)
                .AcceptAsOwnChild(newChild);

                AcceptAsOwnChild(surrogateParent);
                Disown(existingChild);
            }