Пример #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 (FeedbackTypeName != null)
         {
             hashCode = hashCode * 59 + FeedbackTypeName.GetHashCode();
         }
         if (FeedbackTypeDescription != null)
         {
             hashCode = hashCode * 59 + FeedbackTypeDescription.GetHashCode();
         }
         return(hashCode);
     }
 }