Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs =================================================================== diff -u -r3865 -r3869 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs (.../PlLinesCreator.cs) (revision 3865) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/PlLinesCreator/PlLinesCreator.cs (.../PlLinesCreator.cs) (revision 3869) @@ -1102,7 +1102,7 @@ pointIndex++; } - if (plLine.Points.Count() > 0) + if (plLine.Points.Any()) { plLine.Points.First().X = this.surfaceLine.Geometry.Points.First().X; plLine.Points.Last().X = this.surfaceLine.Geometry.Points.Last().X; Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Assemblers/DtoHelperServices.cs =================================================================== diff -u -r3522 -r3869 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Assemblers/DtoHelperServices.cs (.../DtoHelperServices.cs) (revision 3522) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/Assemblers/DtoHelperServices.cs (.../DtoHelperServices.cs) (revision 3869) @@ -360,7 +360,7 @@ foreach (PropertyInfo pInfo in type.GetType().GetProperties()) { - if (refTable.Count() > 0) + if (refTable.Any()) { // does the property exist in the xsd? IEnumerable q = from x in refTable