Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void AddChild(Relative child)
 {
     this.children.Add(child);
 }
Ejemplo n.º 3
0
 public void AddParent(Relative parent)
 {
     this.parents.Add(parent);
 }