Index: Ringtoets/Common/src/Ringtoets.Common.IO/ReferenceLines/ReferenceLinesMetaReader.cs
===================================================================
diff -u -rac96d7c315129af851634ed5a4a6800b59ede718 -r5dabca97fffab41012aafa58da5bc4cd0192e947
--- Ringtoets/Common/src/Ringtoets.Common.IO/ReferenceLines/ReferenceLinesMetaReader.cs (.../ReferenceLinesMetaReader.cs) (revision ac96d7c315129af851634ed5a4a6800b59ede718)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/ReferenceLines/ReferenceLinesMetaReader.cs (.../ReferenceLinesMetaReader.cs) (revision 5dabca97fffab41012aafa58da5bc4cd0192e947)
@@ -59,7 +59,7 @@
/// - Has an empty attribute.
/// - The shape file has non-line geometries in it.
///
- public static List ReadReferenceLinesMetas(string shapeFilePath)
+ public static IEnumerable ReadReferenceLinesMetas(string shapeFilePath)
{
ValidateFilePath(shapeFilePath);
@@ -71,7 +71,7 @@
}
}
- private static List ReadReferenceLinesMetas(PolylineShapeFileReader reader)
+ private static IEnumerable ReadReferenceLinesMetas(PolylineShapeFileReader reader)
{
var referenceLinesMetas = new List();
ReferenceLineMeta referenceLinesMeta;
@@ -118,7 +118,7 @@
/// Thrown when the shape file lacks one of the mandatory attributes.
private static void ValidateExistenceOfRequiredAttributes(PolylineShapeFileReader polylineShapeFileReader, string shapeFilePath)
{
- string[] missingAttributes = GetMissingAttributes(polylineShapeFileReader).ToArray();
+ IEnumerable missingAttributes = GetMissingAttributes(polylineShapeFileReader);
if (missingAttributes.Any())
{
string message = string.Format(RingtoetsCommonIOResources.ReferenceLinesMetaReader_File_0_lacks_required_Attribute_1_,