Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (this.LeftChild != null && this.RightChild == null)
- {
- if(IsLeftChild)
- {
- this.Parent.LeftChild = this.LeftChild;
- this.LeftChild.Parent = this.Parent;
- }
- else if (IsRightChild)
- {
- this.Parent.RightChild = this.LeftChild;
- this.LeftChild.Parent = this.Parent;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement