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