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