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

            return
                ((
                     Specs == other.Specs ||
                     Specs != null &&
                     Specs.Equals(other.Specs)
                     ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     Logo == other.Logo ||
                     Logo != null &&
                     Logo.Equals(other.Logo)
                 ) &&
                 (
                     Region == other.Region ||
                     Region != null &&
                     Region.Equals(other.Region)
                 ) &&
                 (
                     Lang == other.Lang ||
                     Lang != null &&
                     Lang.Equals(other.Lang)
                 ) &&
                 (
                     AuthType == other.AuthType ||
                     AuthType != null &&
                     AuthType.Equals(other.AuthType)
                 ) &&
                 (
                     Oauth2 == other.Oauth2 ||
                     Oauth2 != null &&
                     Oauth2.Equals(other.Oauth2)
                 ) &&
                 (
                     Methods == other.Methods ||
                     Methods != null &&
                     Methods.Equals(other.Methods)
                 ));
        }