/// <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 (Data != null) { hashCode = hashCode * 59 + Data.GetHashCode(); } if (TokishoCode != null) { hashCode = hashCode * 59 + TokishoCode.GetHashCode(); } if (Seq != null) { hashCode = hashCode * 59 + Seq.GetHashCode(); } if (Total != null) { hashCode = hashCode * 59 + Total.GetHashCode(); } if (DojuniBango != null) { hashCode = hashCode * 59 + DojuniBango.GetHashCode(); } return(hashCode); } }
/// <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); } }