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