Class FeatureCollectionExtensions
Provides extension methods for IFeatureCollection.
public static class FeatureCollectionExtensions
- Inheritance
-
FeatureCollectionExtensions
- Inherited Members
Methods
AsReadOnly(IFeatureCollection)
Creates a read-only collection decorator over this feature collection.
public static IFeatureCollection AsReadOnly(this IFeatureCollection features)
Parameters
featuresIFeatureCollectionThis feature collection.
Returns
- IFeatureCollection
A new read-only decorator over this feature collection, or the feature collection itself if it's already read-only.
With<T>(IFeatureCollection, T)
Updates this feature collection (if read-write) or creates a new feature collection (if read-only) and sets its T to the provided value.
public static IFeatureCollection With<T>(this IFeatureCollection features, T value)
Parameters
featuresIFeatureCollectionThis feature collection.
valueTThe new value.
Returns
- IFeatureCollection
The updated feature collection.
Type Parameters
TThe type of the value to set in the feature collection.