public void LandLöschen(string name) { Land result = null; foreach (Land l in dieLaender) { if (l.Name == name) { result = l; break; } } if (result != null) { dieLaender.Remove(result); } }
public void LandLöschen(Land l) { dieLaender.Remove(l); }
public void LandHinzufügen(Land l) { dieLaender.Add(l); }