/// <summary> /// Returns true if RepositoryLinks instances are equal /// </summary> /// <param name="other">Instance of RepositoryLinks to be compared</param> /// <returns>Boolean</returns> public bool Equals(RepositoryLinks other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( HttpNsAdobeComAdobecloudRelProgram == other.HttpNsAdobeComAdobecloudRelProgram || HttpNsAdobeComAdobecloudRelProgram != null && HttpNsAdobeComAdobecloudRelProgram.Equals(other.HttpNsAdobeComAdobecloudRelProgram) ) && ( HttpNsAdobeComAdobecloudRelBranches == other.HttpNsAdobeComAdobecloudRelBranches || HttpNsAdobeComAdobecloudRelBranches != null && HttpNsAdobeComAdobecloudRelBranches.Equals(other.HttpNsAdobeComAdobecloudRelBranches) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) )); }
/// <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 (HttpNsAdobeComAdobecloudRelProgram != null) { hashCode = hashCode * 59 + HttpNsAdobeComAdobecloudRelProgram.GetHashCode(); } if (HttpNsAdobeComAdobecloudRelBranches != null) { hashCode = hashCode * 59 + HttpNsAdobeComAdobecloudRelBranches.GetHashCode(); } if (Self != null) { hashCode = hashCode * 59 + Self.GetHashCode(); } return(hashCode); } }