/// <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> /// 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 (InstallScript != null) { hashCode = hashCode * 59 + InstallScript.GetHashCode(); } if (StartScript != null) { hashCode = hashCode * 59 + StartScript.GetHashCode(); } return(hashCode); } }