Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs =================================================================== diff -u -rc6a3cd9e25138d35bf0881f3ff6df9dfe1776fd2 -rf03b38fb7ef00a60db346246b2fb738f960841c9 --- Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs (.../FailureMechanismSectionsContext.cs) (revision c6a3cd9e25138d35bf0881f3ff6df9dfe1776fd2) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PresentationObjects/FailureMechanismSectionsContext.cs (.../FailureMechanismSectionsContext.cs) (revision f03b38fb7ef00a60db346246b2fb738f960841c9) @@ -95,5 +95,36 @@ #endregion + #region Equatible + + private bool Equals(FailureMechanismSectionsContext other) + { + return Equals(ParentFailureMechanism, other.ParentFailureMechanism); + } + + public override bool Equals(object obj) + { + if (ReferenceEquals(null, obj)) + { + return false; + } + if (ReferenceEquals(this, obj)) + { + return true; + } + if (obj.GetType() != GetType()) + { + return false; + } + return Equals((FailureMechanismSectionsContext)obj); + } + + public override int GetHashCode() + { + return ParentFailureMechanism.GetHashCode(); + } + + #endregion + } } \ No newline at end of file