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

            return
                ((
                     Path == other.Path ||
                     Path != null &&
                     Path.Equals(other.Path)
                     ) &&
                 (
                     ServiceRanking == other.ServiceRanking ||
                     ServiceRanking != null &&
                     ServiceRanking.Equals(other.ServiceRanking)
                 ) &&
                 (
                     AuthLoginselectorMappings == other.AuthLoginselectorMappings ||
                     AuthLoginselectorMappings != null &&
                     AuthLoginselectorMappings.Equals(other.AuthLoginselectorMappings)
                 ) &&
                 (
                     AuthLoginselectorChangepwMappings == other.AuthLoginselectorChangepwMappings ||
                     AuthLoginselectorChangepwMappings != null &&
                     AuthLoginselectorChangepwMappings.Equals(other.AuthLoginselectorChangepwMappings)
                 ) &&
                 (
                     AuthLoginselectorDefaultloginpage == other.AuthLoginselectorDefaultloginpage ||
                     AuthLoginselectorDefaultloginpage != null &&
                     AuthLoginselectorDefaultloginpage.Equals(other.AuthLoginselectorDefaultloginpage)
                 ) &&
                 (
                     AuthLoginselectorDefaultchangepwpage == other.AuthLoginselectorDefaultchangepwpage ||
                     AuthLoginselectorDefaultchangepwpage != null &&
                     AuthLoginselectorDefaultchangepwpage.Equals(other.AuthLoginselectorDefaultchangepwpage)
                 ) &&
                 (
                     AuthLoginselectorHandle == other.AuthLoginselectorHandle ||
                     AuthLoginselectorHandle != null &&
                     AuthLoginselectorHandle.Equals(other.AuthLoginselectorHandle)
                 ) &&
                 (
                     AuthLoginselectorHandleAllExtensions == other.AuthLoginselectorHandleAllExtensions ||
                     AuthLoginselectorHandleAllExtensions != null &&
                     AuthLoginselectorHandleAllExtensions.Equals(other.AuthLoginselectorHandleAllExtensions)
                 ));
        }
Example #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 (Path != null)
         {
             hashCode = hashCode * 59 + Path.GetHashCode();
         }
         if (ServiceRanking != null)
         {
             hashCode = hashCode * 59 + ServiceRanking.GetHashCode();
         }
         if (AuthLoginselectorMappings != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorMappings.GetHashCode();
         }
         if (AuthLoginselectorChangepwMappings != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorChangepwMappings.GetHashCode();
         }
         if (AuthLoginselectorDefaultloginpage != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorDefaultloginpage.GetHashCode();
         }
         if (AuthLoginselectorDefaultchangepwpage != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorDefaultchangepwpage.GetHashCode();
         }
         if (AuthLoginselectorHandle != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorHandle.GetHashCode();
         }
         if (AuthLoginselectorHandleAllExtensions != null)
         {
             hashCode = hashCode * 59 + AuthLoginselectorHandleAllExtensions.GetHashCode();
         }
         return(hashCode);
     }
 }