/// <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 (AdresBuiteland3 != null) { hashCode = hashCode * 59 + AdresBuiteland3.GetHashCode(); } if (AdresBuiteland1 != null) { hashCode = hashCode * 59 + AdresBuiteland1.GetHashCode(); } if (AdresBuiteland2 != null) { hashCode = hashCode * 59 + AdresBuiteland2.GetHashCode(); } if (Landnaam != null) { hashCode = hashCode * 59 + Landnaam.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if AdresbuitenlandLandcode instances are equal /// </summary> /// <param name="other">Instance of AdresbuitenlandLandcode to be compared</param> /// <returns>Boolean</returns> public bool Equals(AdresbuitenlandLandcode other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AdresBuiteland3 == other.AdresBuiteland3 || AdresBuiteland3 != null && AdresBuiteland3.Equals(other.AdresBuiteland3) ) && ( AdresBuiteland1 == other.AdresBuiteland1 || AdresBuiteland1 != null && AdresBuiteland1.Equals(other.AdresBuiteland1) ) && ( AdresBuiteland2 == other.AdresBuiteland2 || AdresBuiteland2 != null && AdresBuiteland2.Equals(other.AdresBuiteland2) ) && ( Landnaam == other.Landnaam || Landnaam != null && Landnaam.Equals(other.Landnaam) )); }