/// <summary> /// Returns true if ConfirmBukkenJohoRequestBukkenJohos instances are equal /// </summary> /// <param name="other">Instance of ConfirmBukkenJohoRequestBukkenJohos to be compared</param> /// <returns>Boolean</returns> public bool Equals(ConfirmBukkenJohoRequestBukkenJohos other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( BukkenKubun == other.BukkenKubun || BukkenKubun != null && BukkenKubun.Equals(other.BukkenKubun) ) && ( BukkenShubetsu == other.BukkenShubetsu || BukkenShubetsu != null && BukkenShubetsu.Equals(other.BukkenShubetsu) ) && ( BukkenJotai == other.BukkenJotai || BukkenJotai != null && BukkenJotai.Equals(other.BukkenJotai) ) && ( ChibanKuikiJoho == other.ChibanKuikiJoho || ChibanKuikiJoho != null && ChibanKuikiJoho.Equals(other.ChibanKuikiJoho) ) && ( ChibanKaokuBangoJoho == other.ChibanKaokuBangoJoho || ChibanKaokuBangoJoho != null && ChibanKaokuBangoJoho.Equals(other.ChibanKaokuBangoJoho) ) && ( FudosanBango == other.FudosanBango || FudosanBango != null && FudosanBango.Equals(other.FudosanBango) ) && ( HeisaNengappi == other.HeisaNengappi || HeisaNengappi != null && HeisaNengappi.Equals(other.HeisaNengappi) ) && ( TokishoCode == other.TokishoCode || TokishoCode != null && TokishoCode.Equals(other.TokishoCode) ) && ( TetsuzukiID == other.TetsuzukiID || TetsuzukiID != null && TetsuzukiID.Equals(other.TetsuzukiID) )); }
/// <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 (BukkenKubun != null) { hashCode = hashCode * 59 + BukkenKubun.GetHashCode(); } if (BukkenShubetsu != null) { hashCode = hashCode * 59 + BukkenShubetsu.GetHashCode(); } if (BukkenJotai != null) { hashCode = hashCode * 59 + BukkenJotai.GetHashCode(); } if (ChibanKuikiJoho != null) { hashCode = hashCode * 59 + ChibanKuikiJoho.GetHashCode(); } if (ChibanKaokuBangoJoho != null) { hashCode = hashCode * 59 + ChibanKaokuBangoJoho.GetHashCode(); } if (FudosanBango != null) { hashCode = hashCode * 59 + FudosanBango.GetHashCode(); } if (HeisaNengappi != null) { hashCode = hashCode * 59 + HeisaNengappi.GetHashCode(); } if (TokishoCode != null) { hashCode = hashCode * 59 + TokishoCode.GetHashCode(); } if (TetsuzukiID != null) { hashCode = hashCode * 59 + TetsuzukiID.GetHashCode(); } return(hashCode); } }