private static Esri.ArcGISRuntime.Geometry.Polyline CreatePolyline(PointCollectionList parts, Esri.ArcGISRuntime.Geometry.SpatialReference spatialReference) { var builder = new PolylineBuilder(spatialReference); foreach (var part in parts) { var roadPart = new Part(spatialReference); foreach (var vertex in part) { var point = CreatePoint(vertex, spatialReference); if (!point.IsEmpty) { roadPart.AddPoint(point); } } builder.AddPart(roadPart); } return(builder.ToGeometry()); }