public void VoegLocatieToe(Locatie locatie) { if (Locaties.Contains(locatie)) { throw new ArgumentException("Locatie behoort reeds tot dit land"); } Locaties.Add(locatie); locatie.Land = this; }
public void LocatieToevoegen(Locatie locatie) { if (Locaties.Contains(locatie)) { return; } Locaties.Add(locatie); RondeLocatie.Toevoegen(this, locatie); }