コード例 #1
0
        /// <summary>Indicates whether the current object is equal to another object of the same type.</summary>
        /// <param name="other">An object to compare with this object.</param>
        /// <returns>true if the current object is equal to the <paramref name="other">other</paramref> parameter; otherwise, false.</returns>
        public virtual bool Equals(Components other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (!Schemas.NullableDictionaryEquals(other.Schemas))
            {
                return(false);
            }
            if (!Responses.NullableDictionaryEquals(other.Responses))
            {
                return(false);
            }
            if (!Parameters.NullableDictionaryEquals(other.Parameters))
            {
                return(false);
            }
            if (!Examples.NullableDictionaryEquals(other.Examples))
            {
                return(false);
            }
            if (!RequestBodies.NullableDictionaryEquals(other.RequestBodies))
            {
                return(false);
            }
            if (!Headers.NullableDictionaryEquals(other.Headers))
            {
                return(false);
            }
            if (!SecuritySchemes.NullableDictionaryEquals(other.SecuritySchemes))
            {
                return(false);
            }
            if (!Links.NullableDictionaryEquals(other.Links))
            {
                return(false);
            }
            if (!Callbacks.NullableDictionaryEquals(other.Callbacks))
            {
                return(false);
            }

            return(true);
        }