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

            return 
                (
                    UserField == other.UserField ||
                    UserField != null &&
                    UserField.Equals(other.UserField)
                ) && 
                (
                    LdapField == other.LdapField ||
                    LdapField != null &&
                    LdapField.Equals(other.LdapField)
                );
        }
Exemple #2
0
        /// <summary>
        /// Returns true if LdapAttributeLink instances are equal
        /// </summary>
        /// <param name="other">Instance of LdapAttributeLink to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(LdapAttributeLink other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     UserField == other.UserField ||

                     UserField.Equals(other.UserField)
                     ) &&
                 (
                     LdapField == other.LdapField ||
                     LdapField != null &&
                     LdapField.Equals(other.LdapField)
                 ));
        }