public PersonV5(string name, PersonV5 parent = null, PersonV5 partner = null) { this.Name = name; this.Parent = parent; if (this.Parent != null) { this.Parent.AddChild(this); } this.Partner = partner; if (this.Partner != null) { this.Partner.Partner = this; } }
public void RemoveChild(PersonV5 child) => this.Children.Remove(child);
public void AddChild(PersonV5 child) => this.Children.Add(child);