/// <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); } }
/// <summary> /// Indicates whether the current object is equal to another object of the same type. /// </summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// true if the current object is equal to the <paramref name="other">other</paramref> parameter; otherwise, false. /// </returns> public bool Equals(ServiceFailureActions other) { return(ResetPeriode.Equals(other.ResetPeriode) && string.Equals(RebootMessage, other.RebootMessage) && string.Equals(Command, other.Command) && Equals(Actions, other.Actions)); }