/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Omschrijving != null) { hashCode = hashCode * 59 + Omschrijving.GetHashCode(); } if (Code != null) { hashCode = hashCode * 59 + Code.GetHashCode(); } if (BeginDatumGeldigheid != null) { hashCode = hashCode * 59 + BeginDatumGeldigheid.GetHashCode(); } if (EindDatumGeldigheid != null) { hashCode = hashCode * 59 + EindDatumGeldigheid.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if IngeschrevenPersoonVerblijfstitel instances are equal /// </summary> /// <param name="other">Instance of IngeschrevenPersoonVerblijfstitel to be compared</param> /// <returns>Boolean</returns> public bool Equals(IngeschrevenPersoonVerblijfstitel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Omschrijving == other.Omschrijving || Omschrijving != null && Omschrijving.Equals(other.Omschrijving) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( BeginDatumGeldigheid == other.BeginDatumGeldigheid || BeginDatumGeldigheid != null && BeginDatumGeldigheid.Equals(other.BeginDatumGeldigheid) ) && ( EindDatumGeldigheid == other.EindDatumGeldigheid || EindDatumGeldigheid != null && EindDatumGeldigheid.Equals(other.EindDatumGeldigheid) )); }