Ejemplo n.º 1
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 (ProxyEnabled != null)
         {
             hashCode = hashCode * 59 + ProxyEnabled.GetHashCode();
         }
         if (ProxyHost != null)
         {
             hashCode = hashCode * 59 + ProxyHost.GetHashCode();
         }
         if (ProxyPort != null)
         {
             hashCode = hashCode * 59 + ProxyPort.GetHashCode();
         }
         if (ProxyUser != null)
         {
             hashCode = hashCode * 59 + ProxyUser.GetHashCode();
         }
         if (ProxyPassword != null)
         {
             hashCode = hashCode * 59 + ProxyPassword.GetHashCode();
         }
         if (ProxyExceptions != null)
         {
             hashCode = hashCode * 59 + ProxyExceptions.GetHashCode();
         }
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns true if ComDayCommonsHttpclientProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCommonsHttpclientProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCommonsHttpclientProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProxyEnabled == other.ProxyEnabled ||
                     ProxyEnabled != null &&
                     ProxyEnabled.Equals(other.ProxyEnabled)
                     ) &&
                 (
                     ProxyHost == other.ProxyHost ||
                     ProxyHost != null &&
                     ProxyHost.Equals(other.ProxyHost)
                 ) &&
                 (
                     ProxyUser == other.ProxyUser ||
                     ProxyUser != null &&
                     ProxyUser.Equals(other.ProxyUser)
                 ) &&
                 (
                     ProxyPassword == other.ProxyPassword ||
                     ProxyPassword != null &&
                     ProxyPassword.Equals(other.ProxyPassword)
                 ) &&
                 (
                     ProxyNtlmHost == other.ProxyNtlmHost ||
                     ProxyNtlmHost != null &&
                     ProxyNtlmHost.Equals(other.ProxyNtlmHost)
                 ) &&
                 (
                     ProxyNtlmDomain == other.ProxyNtlmDomain ||
                     ProxyNtlmDomain != null &&
                     ProxyNtlmDomain.Equals(other.ProxyNtlmDomain)
                 ) &&
                 (
                     ProxyExceptions == other.ProxyExceptions ||
                     ProxyExceptions != null &&
                     ProxyExceptions.Equals(other.ProxyExceptions)
                 ));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Returns true if OrgApacheHttpProxyconfiguratorProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheHttpProxyconfiguratorProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheHttpProxyconfiguratorProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProxyEnabled == other.ProxyEnabled ||
                     ProxyEnabled != null &&
                     ProxyEnabled.Equals(other.ProxyEnabled)
                     ) &&
                 (
                     ProxyHost == other.ProxyHost ||
                     ProxyHost != null &&
                     ProxyHost.Equals(other.ProxyHost)
                 ) &&
                 (
                     ProxyPort == other.ProxyPort ||
                     ProxyPort != null &&
                     ProxyPort.Equals(other.ProxyPort)
                 ) &&
                 (
                     ProxyUser == other.ProxyUser ||
                     ProxyUser != null &&
                     ProxyUser.Equals(other.ProxyUser)
                 ) &&
                 (
                     ProxyPassword == other.ProxyPassword ||
                     ProxyPassword != null &&
                     ProxyPassword.Equals(other.ProxyPassword)
                 ) &&
                 (
                     ProxyExceptions == other.ProxyExceptions ||
                     ProxyExceptions != null &&
                     ProxyExceptions.Equals(other.ProxyExceptions)
                 ));
        }