Example #1
0
 public void RemoveOwnerShipOf(Dog dog)
 {
     owns.Remove(dog);
     dog.Owner = null;
 }
Example #2
0
 // The add and remove method ensure that the relations is always consistent
 public void AddOwnerShipOf(Dog dog)
 {
     owns.Add(dog);
     dog.Owner = this;
 }