/// <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 (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (ProgramId != null) { hashCode = hashCode * 59 + ProgramId.GetHashCode(); } if (PipelineId != null) { hashCode = hashCode * 59 + PipelineId.GetHashCode(); } if (ArtifactsVersion != null) { hashCode = hashCode * 59 + ArtifactsVersion.GetHashCode(); } if (User != null) { hashCode = hashCode * 59 + User.GetHashCode(); } hashCode = hashCode * 59 + Status.GetHashCode(); hashCode = hashCode * 59 + Trigger.GetHashCode(); if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode = hashCode * 59 + UpdatedAt.GetHashCode(); } if (FinishedAt != null) { hashCode = hashCode * 59 + FinishedAt.GetHashCode(); } if (Embedded != null) { hashCode = hashCode * 59 + Embedded.GetHashCode(); } if (Links != null) { hashCode = hashCode * 59 + Links.GetHashCode(); } return(hashCode); } }
/// <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 (PipelineId != null) { hashCode = hashCode * 59 + PipelineId.GetHashCode(); } if (Tools != null) { hashCode = hashCode * 59 + Tools.GetHashCode(); } return(hashCode); } }