Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs =================================================================== diff -u -rfd7cb4da4164284049a3627b1d85f92e722d1814 -r4909d5c5d2883b3c6974f2f3840bd55797e8b0bd --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs (.../GrassCoverErosionInwardsCalculation.cs) (revision fd7cb4da4164284049a3627b1d85f92e722d1814) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GrassCoverErosionInwardsCalculation.cs (.../GrassCoverErosionInwardsCalculation.cs) (revision 4909d5c5d2883b3c6974f2f3840bd55797e8b0bd) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base; using Ringtoets.Common.Data; using Ringtoets.Common.Data.Calculation; @@ -29,7 +30,7 @@ /// /// This class holds information about a calculation for the . /// - public class GrassCoverErosionInwardsCalculation : Observable, ICalculation + public class GrassCoverErosionInwardsCalculation : Observable, ICalculation, ICloneable { /// /// Creates a new instance of . @@ -44,14 +45,14 @@ /// /// Gets the input parameters to perform a grass cover erosion inwards calculation with. /// - public GrassCoverErosionInwardsInput InputParameters { get; } + public GrassCoverErosionInwardsInput InputParameters { get; private set; } /// /// Gets or sets , which contains the results of a probabilistic calculation. /// public GrassCoverErosionInwardsOutput Output { get; set; } - public Comment Comments { get; } + public Comment Comments { get; private set; } public string Name { get; set; } @@ -76,5 +77,16 @@ { Output = null; } + + public object Clone() + { + var clone = (GrassCoverErosionInwardsCalculation) MemberwiseClone(); + + clone.Comments = (Comment) Comments.Clone(); + clone.InputParameters = (GrassCoverErosionInwardsInput) InputParameters.Clone(); + clone.Output = (GrassCoverErosionInwardsOutput) Output.Clone(); + + return clone; + } } } \ No newline at end of file