private static Esri.ArcGISRuntime.Geometry.Geometry ReadGeographyMultiPoint(Microsoft.SqlServer.Types.SqlGeography mpoint, Esri.ArcGISRuntime.Geometry.SpatialReference sr)
 {
     return(new Esri.ArcGISRuntime.Geometry.Multipoint(
                Utilities.CountEnumerator(mpoint.STNumPoints().Value).Select(i => mpoint.STPointN(i))
                .Select(p => ReadGeographyPoint(p, sr))
                ));
 }
 private static Esri.ArcGISRuntime.Geometry.Polyline ReadGeographyLineString(Microsoft.SqlServer.Types.SqlGeography line, Esri.ArcGISRuntime.Geometry.SpatialReference sr)
 {
     return(new Esri.ArcGISRuntime.Geometry.Polyline(
                Utilities.CountEnumerator(line.STNumPoints().Value)
                .Select(i => line.STPointN(i))
                .Select(p => ReadGeographyPoint(p, sr))
                ));
 }