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