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