Index: DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/PlLine.cs =================================================================== diff -u -r3893 -r4000 --- DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/PlLine.cs (.../PlLine.cs) (revision 3893) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/General/PlLines/PlLine.cs (.../PlLine.cs) (revision 4000) @@ -26,11 +26,9 @@ { public class PlLinePoint : GeometryPoint { - public PlLinePoint() : this (0, 0) { } + public PlLinePoint() : this(0, 0) {} - public PlLinePoint(double aX, double aZ) : base(aX, aZ) - { - } + public PlLinePoint(double aX, double aZ) : base(aX, aZ) {} } public class PlLine : PolyLine, ICloneable @@ -39,7 +37,10 @@ public PlLineType PlLineType { - get { return plLineType; } + get + { + return plLineType; + } set { plLineType = value; @@ -49,21 +50,29 @@ public bool PlLineTypeSpecified { get; private set; } - public bool IsPhreatic { get; set; } public int BoundaryLayer { get; set; } public PlLine Clone() { - PlLine plLine = new PlLine() { IsPhreatic = this.IsPhreatic, BoundaryLayer = this.BoundaryLayer }; - foreach (PlLinePoint point in this.Points) + var plLine = new PlLine { - PlLinePoint newPoint = new PlLinePoint() { X = point.X, Y = point.Y, Z = point.Z }; + IsPhreatic = IsPhreatic, + BoundaryLayer = BoundaryLayer + }; + foreach (PlLinePoint point in Points) + { + var newPoint = new PlLinePoint + { + X = point.X, + Y = point.Y, + Z = point.Z + }; plLine.Points.Add(newPoint); } + return plLine; } } - -} +} \ No newline at end of file