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