Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSurfaceLine.cs =================================================================== diff -u -rff0911662b90e32ee3f34444ae6b33b91f6cc85d -r39e941a3f116d264000cd6f46a61f64674063933 --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSurfaceLine.cs (.../MacroStabilityInwardsSurfaceLine.cs) (revision ff0911662b90e32ee3f34444ae6b33b91f6cc85d) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/MacroStabilityInwardsSurfaceLine.cs (.../MacroStabilityInwardsSurfaceLine.cs) (revision 39e941a3f116d264000cd6f46a61f64674063933) @@ -20,6 +20,8 @@ // All rights reserved. using System; +using System.Collections.Generic; +using System.Linq; using Core.Common.Base.Geometry; using Ringtoets.Common.Data; using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; @@ -424,17 +426,18 @@ && Equals(BottomDitchPolderSide, other.BottomDitchPolderSide); } - private bool EqualGeometricPoints(Point3D[] otherPoints) + private bool EqualGeometricPoints(IEnumerable otherPoints) { - int nrOfOtherPoints = otherPoints.Length; - if (Points.Length != nrOfOtherPoints) + int nrOfOtherPoints = otherPoints.Count(); + int nrOfPoints = Points.Count(); + if (nrOfPoints != nrOfOtherPoints) { return false; } - for (var index = 0; index < Points.Length; index++) + for (var index = 0; index < nrOfPoints; index++) { - if (!Points[index].Equals(otherPoints[index])) + if (!Points.ElementAt(index).Equals(otherPoints.ElementAt(index))) { return false; }