Skip to content

FeatureCollection Methods

Default implementation for IFeatureCollection.

Get

View source
public TFeature? Get<TFeature>()
Retrieves the requested feature from the collection.

Returns

The requested feature, or null if it is not present.

GetEnumerator

View source
public IEnumerator<KeyValuePair<Type, object>> GetEnumerator()
Returns an enumerator that iterates through the collection.

Returns

An enumerator that can be used to iterate through the collection.

Set(TFeature?)

View source
public void Set<TFeature>(TFeature? instance)
Sets the given feature in the collection.

Parameters

instanceTFeature?
The feature value.