static void AddChild(string[] input, List <Person> people, string personName) { string name = input[2]; string birthDate = input[3]; Relative relative = new Relative(name, birthDate); people.Where(x => x.Name == personName).First().Cildren.Add(relative); }
public void AddChild(Relative child) { this.children.Add(child); }
public void AddParent(Relative parent) { this.parents.Add(parent); }