Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if InlineResponseDefault6OptionSetIsCustomizable instances are equal
        /// </summary>
        /// <param name="other">Instance of InlineResponseDefault6OptionSetIsCustomizable to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(InlineResponseDefault6OptionSetIsCustomizable other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                     ) &&
                 (
                     CanBeChanged == other.CanBeChanged ||
                     CanBeChanged != null &&
                     CanBeChanged.Equals(other.CanBeChanged)
                 ) &&
                 (
                     ManagedPropertyLogicalName == other.ManagedPropertyLogicalName ||
                     ManagedPropertyLogicalName != null &&
                     ManagedPropertyLogicalName.Equals(other.ManagedPropertyLogicalName)
                 ));
        }
Ejemplo n.º 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 (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (CanBeChanged != null)
         {
             hashCode = hashCode * 59 + CanBeChanged.GetHashCode();
         }
         if (ManagedPropertyLogicalName != null)
         {
             hashCode = hashCode * 59 + ManagedPropertyLogicalName.GetHashCode();
         }
         return(hashCode);
     }
 }