/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked { int hashCode = ResetPeriode.GetHashCode(); hashCode = (hashCode * 397) ^ (RebootMessage != null ? RebootMessage.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Command != null ? Command.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Actions != null ? Actions.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = FirstFailureAction.GetHashCode(); result = (result * 397) ^ SecondFailureAction.GetHashCode(); result = (result * 397) ^ SubsequentFailureActions.GetHashCode(); result = (result * 397) ^ DaysToResetFailAcount; result = (result * 397) ^ MinutesToRestartService; result = (result * 397) ^ (RebootMessage != null ? RebootMessage.GetHashCode() : 0); result = (result * 397) ^ (CommandToLaunchOnFailure != null ? CommandToLaunchOnFailure.GetHashCode() : 0); return(result); } }