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