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