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

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Optional == other.Optional ||
                     Optional != null &&
                     Optional.Equals(other.Optional)
                 ) &&
                 (
                     IsSet == other.IsSet ||
                     IsSet != null &&
                     IsSet.Equals(other.IsSet)
                 ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ));
        }
Пример #2
0
        /// <summary>
        /// Returns true if ConfigNodePropertyArray instances are equal
        /// </summary>
        /// <param name="other">Instance of ConfigNodePropertyArray to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ConfigNodePropertyArray other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                     ) &&
                 (
                     Optional == other.Optional ||
                     Optional != null &&
                     Optional.Equals(other.Optional)
                 ) &&
                 (
                     IsSet == other.IsSet ||
                     IsSet != null &&
                     IsSet.Equals(other.IsSet)
                 ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     Values == other.Values ||
                     Values != null &&
                     Values.SequenceEqual(other.Values)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ));
        }