Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs
===================================================================
diff -u -r5013 -r5061
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 5013)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 5061)
@@ -20,7 +20,6 @@
// All rights reserved.
using System.Collections.Generic;
-using System.Linq;
using Deltares.DamEngine.Data.Geometry;
using Deltares.DamEngine.Data.Standard.Language;
using Deltares.DamEngine.Data.Standard.Validation;
@@ -158,6 +157,25 @@
}
///
+ /// Clone the soil profile 2D
+ ///
+ /// The cloned SoilProfile2D
+ public SoilProfile2D Clone()
+ {
+ var clonedSoilProfile2D = new SoilProfile2D
+ {
+ Name = Name
+ };
+ foreach (SoilLayer2D surface in Surfaces)
+ {
+ SoilLayer2D clonedSurface = surface.Clone();
+ clonedSoilProfile2D.Surfaces.Add(clonedSurface);
+ }
+
+ return clonedSoilProfile2D;
+ }
+
+ ///
/// Returns a that represents this instance.
///
///