Exemplo n.º 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (HttpNsAdobeComAdobecloudRelPipelines != null)
         {
             hashCode = hashCode * 59 + HttpNsAdobeComAdobecloudRelPipelines.GetHashCode();
         }
         if (HttpNsAdobeComAdobecloudRelEnvironments != null)
         {
             hashCode = hashCode * 59 + HttpNsAdobeComAdobecloudRelEnvironments.GetHashCode();
         }
         if (HttpNsAdobeComAdobecloudRelRepositories != null)
         {
             hashCode = hashCode * 59 + HttpNsAdobeComAdobecloudRelRepositories.GetHashCode();
         }
         if (Self != null)
         {
             hashCode = hashCode * 59 + Self.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ProgramLinks instances are equal
        /// </summary>
        /// <param name="other">Instance of ProgramLinks to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ProgramLinks other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     HttpNsAdobeComAdobecloudRelPipelines == other.HttpNsAdobeComAdobecloudRelPipelines ||
                     HttpNsAdobeComAdobecloudRelPipelines != null &&
                     HttpNsAdobeComAdobecloudRelPipelines.Equals(other.HttpNsAdobeComAdobecloudRelPipelines)
                     ) &&
                 (
                     HttpNsAdobeComAdobecloudRelEnvironments == other.HttpNsAdobeComAdobecloudRelEnvironments ||
                     HttpNsAdobeComAdobecloudRelEnvironments != null &&
                     HttpNsAdobeComAdobecloudRelEnvironments.Equals(other.HttpNsAdobeComAdobecloudRelEnvironments)
                 ) &&
                 (
                     HttpNsAdobeComAdobecloudRelRepositories == other.HttpNsAdobeComAdobecloudRelRepositories ||
                     HttpNsAdobeComAdobecloudRelRepositories != null &&
                     HttpNsAdobeComAdobecloudRelRepositories.Equals(other.HttpNsAdobeComAdobecloudRelRepositories)
                 ) &&
                 (
                     Self == other.Self ||
                     Self != null &&
                     Self.Equals(other.Self)
                 ));
        }