예제 #1
0
        /// <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)
                 ));
        }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
        /// <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)
                 ));
        }