/// <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 (Enabled != null) { hashCode = hashCode * 59 + Enabled.GetHashCode(); } if (AgentName != null) { hashCode = hashCode * 59 + AgentName.GetHashCode(); } if (DiffPath != null) { hashCode = hashCode * 59 + DiffPath.GetHashCode(); } if (PropertyNames != null) { hashCode = hashCode * 59 + PropertyNames.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 (Enabled != null) { hashCode = hashCode * 59 + Enabled.GetHashCode(); } if (AgentName != null) { hashCode = hashCode * 59 + AgentName.GetHashCode(); } if (DiffPath != null) { hashCode = hashCode * 59 + DiffPath.GetHashCode(); } if (ObservedPath != null) { hashCode = hashCode * 59 + ObservedPath.GetHashCode(); } if (ServiceName != null) { hashCode = hashCode * 59 + ServiceName.GetHashCode(); } if (PropertyNames != null) { hashCode = hashCode * 59 + PropertyNames.GetHashCode(); } if (DistributionDelay != null) { hashCode = hashCode * 59 + DistributionDelay.GetHashCode(); } if (ServiceUserTarget != null) { hashCode = hashCode * 59 + ServiceUserTarget.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 (DiffPath != null) { hashCode = hashCode * 59 + DiffPath.GetHashCode(); } if (ServiceName != null) { hashCode = hashCode * 59 + ServiceName.GetHashCode(); } if (ServiceUserTarget != null) { hashCode = hashCode * 59 + ServiceUserTarget.GetHashCode(); } return(hashCode); } }