/// <summary> /// Returns true if Persoon instances are equal /// </summary> /// <param name="other">Instance of Persoon to be compared</param> /// <returns>Boolean</returns> public bool Equals(Persoon other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PeriodeGeldigheid == other.PeriodeGeldigheid || PeriodeGeldigheid != null && PeriodeGeldigheid.Equals(other.PeriodeGeldigheid) ) && ( VoorlettersAanschrijving == other.VoorlettersAanschrijving || VoorlettersAanschrijving != null && VoorlettersAanschrijving.Equals(other.VoorlettersAanschrijving) ) && ( Voornamen == other.Voornamen || Voornamen != null && Voornamen.Equals(other.Voornamen) ) && ( VoorvoegselGeslachtsnaam == other.VoorvoegselGeslachtsnaam || VoorvoegselGeslachtsnaam != null && VoorvoegselGeslachtsnaam.Equals(other.VoorvoegselGeslachtsnaam) ) && ( Geslachtsnaam == other.Geslachtsnaam || Geslachtsnaam != null && Geslachtsnaam.Equals(other.Geslachtsnaam) ) && ( Geslachtsaanduiding == other.Geslachtsaanduiding || Geslachtsaanduiding != null && Geslachtsaanduiding.Equals(other.Geslachtsaanduiding) ) && ( Aanschrijfwijze == other.Aanschrijfwijze || Aanschrijfwijze != null && Aanschrijfwijze.Equals(other.Aanschrijfwijze) ) && ( Geboortedatum == other.Geboortedatum || Geboortedatum != null && Geboortedatum.Equals(other.Geboortedatum) ) && ( Verblijfsadres == other.Verblijfsadres || Verblijfsadres != null && Verblijfsadres.Equals(other.Verblijfsadres) ) && ( Adresbuitenland == other.Adresbuitenland || Adresbuitenland != null && Adresbuitenland.Equals(other.Adresbuitenland) )); }
/// <summary> /// Returns true if Verblijfsadres instances are equal /// </summary> /// <param name="other">Instance of Verblijfsadres to be compared</param> /// <returns>Boolean</returns> public bool Equals(Verblijfsadres other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( PeriodeGeldigheid == other.PeriodeGeldigheid || PeriodeGeldigheid != null && PeriodeGeldigheid.Equals(other.PeriodeGeldigheid) ) && ( IdentificatieNummerAanduiding == other.IdentificatieNummerAanduiding || IdentificatieNummerAanduiding != null && IdentificatieNummerAanduiding.Equals(other.IdentificatieNummerAanduiding) ) && ( Postcode == other.Postcode || Postcode != null && Postcode.Equals(other.Postcode) ) && ( Huisnummer == other.Huisnummer || Huisnummer != null && Huisnummer.Equals(other.Huisnummer) ) && ( Huisletter == other.Huisletter || Huisletter != null && Huisletter.Equals(other.Huisletter) ) && ( Huisnummertoevoeging == other.Huisnummertoevoeging || Huisnummertoevoeging != null && Huisnummertoevoeging.Equals(other.Huisnummertoevoeging) ) && ( Locatiebeschrijving == other.Locatiebeschrijving || Locatiebeschrijving != null && Locatiebeschrijving.Equals(other.Locatiebeschrijving) ) && ( NaamOpenbareRuimte == other.NaamOpenbareRuimte || NaamOpenbareRuimte != null && NaamOpenbareRuimte.Equals(other.NaamOpenbareRuimte) ) && ( Woonplaatsnaam == other.Woonplaatsnaam || Woonplaatsnaam != null && Woonplaatsnaam.Equals(other.Woonplaatsnaam) ) && ( WoonplaatsIdentificatie == other.WoonplaatsIdentificatie || WoonplaatsIdentificatie != null && WoonplaatsIdentificatie.Equals(other.WoonplaatsIdentificatie) )); }