private void FixupCountryRegion(CountryRegion previousValue) { if (previousValue != null && previousValue.CountryRegionCurrencies.Contains(this)) { previousValue.CountryRegionCurrencies.Remove(this); } if (CountryRegion != null) { if (!CountryRegion.CountryRegionCurrencies.Contains(this)) { CountryRegion.CountryRegionCurrencies.Add(this); } if (CountryRegionCode != CountryRegion.CountryRegionCode) { CountryRegionCode = CountryRegion.CountryRegionCode; } } }