Exemple #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(Path other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            if (!StringComparer.Ordinal.Equals(Summary, other.Summary))
            {
                return(false);
            }
            if (!StringComparer.Ordinal.Equals(Description, other.Description))
            {
                return(false);
            }
            if (!Get.NullableEquals(other.Get))
            {
                return(false);
            }
            if (!Put.NullableEquals(other.Put))
            {
                return(false);
            }
            if (!Post.NullableEquals(other.Post))
            {
                return(false);
            }
            if (!Delete.NullableEquals(other.Delete))
            {
                return(false);
            }
            if (!Options.NullableEquals(other.Options))
            {
                return(false);
            }
            if (!Head.NullableEquals(other.Head))
            {
                return(false);
            }
            if (!Patch.NullableEquals(other.Patch))
            {
                return(false);
            }
            if (!Trace.NullableEquals(other.Trace))
            {
                return(false);
            }
            if (!Servers.NullableListEquals(other.Servers))
            {
                return(false);
            }
            if (!Parameters.NullableDictionaryEquals(other.Parameters))
            {
                return(false);
            }

            return(true);
        }