Index: Ringtoets/Common/src/Ringtoets.Common.Data/StructureBase.cs
===================================================================
diff -u -rb3b6c13cf736c134476b3db34281332d01ca86b1 -r4954f3a3c5eab3aff1b2d4c5a58364f06fe4bbd2
--- Ringtoets/Common/src/Ringtoets.Common.Data/StructureBase.cs (.../StructureBase.cs) (revision b3b6c13cf736c134476b3db34281332d01ca86b1)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/StructureBase.cs (.../StructureBase.cs) (revision 4954f3a3c5eab3aff1b2d4c5a58364f06fe4bbd2)
@@ -62,12 +62,12 @@
///
/// Gets the name of the structure.
///
- public string Name { get; }
+ public string Name { get; private set; }
///
/// Gets the identifier of the structure.
///
- public string Id { get; private set; }
+ public string Id { get; }
///
/// Gets the location of the structure.
@@ -80,6 +80,26 @@
///
public RoundedDouble StructureNormalOrientation { get; private set; }
+ ///
+ /// Copies the property values of the to the
+ /// .
+ ///
+ /// The
+ /// to get the property values from.
+ /// Thrown when
+ /// is null.
+ protected void CopyProperties(StructureBase fromStructure)
+ {
+ if (fromStructure == null)
+ {
+ throw new ArgumentNullException(nameof(fromStructure));
+ }
+
+ Name = fromStructure.Name;
+ Location = fromStructure.Location;
+ StructureNormalOrientation = fromStructure.StructureNormalOrientation;
+ }
+
public override string ToString()
{
return Name;