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