Class ListViews
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
List views of point sequences, polylines and polygons for LINQ and foreach (ADR 0002).
public static class ListViewsInheritance
Inherited Members
Remarks
If the geometry already implements the matching System.Collections.Generic.IReadOnlyList`1, it is returned directly; otherwise a lean, copy-free view that accesses the indexer is created.
Methods
AsList(IPointCollection2D)
The points as a list.
public static IReadOnlyList<IPoint2D> AsList(this IPointCollection2D points)Parameters
pointsIPointCollection2D-
A path, ring or multipoint.
Returns
Exceptions
- ArgumentNullException
-
pointsisnull.
AsList(IPolyline2D)
The paths as a list.
public static IReadOnlyList<IPath2D> AsList(this IPolyline2D polyline)Parameters
polylineIPolyline2D-
The polyline.
Returns
Exceptions
- ArgumentNullException
-
polylineisnull.
AsList(IPolygon2D)
The rings as a list.
public static IReadOnlyList<IRing2D> AsList(this IPolygon2D polygon)Parameters
polygonIPolygon2D-
The polygon.
Returns
Exceptions
- ArgumentNullException
-
polygonisnull.